Now, if you need to enable SSH after an installation, open the file rc.conf and add the line ` sshd_enable="YES" `.
open the file
# vi /etc/rc.conf
Now add the below line to the file.Now start sshd.
sshd_enable="YES"
# /etc/rc.d/sshd start
open the file
# vi /etc/rc.conf
Now add the below line to the file.Now start sshd.
sshd_enable="YES"
# /etc/rc.d/sshd start
# df -h
Example:Now if you want this configuration to be "persistent across boot" then you will need to edit the file /etc/rc.conf to setup persistent ip aliasing option by appending a configuration line, so that next time FreeBSD comes up (after restart/shutdown) it will create alias for you:# ifconfig rl0 192.168.3.1 netmask 255.255.255.255 aliasSubstitute rl0 with your desired inteface and 192.168.3.1 with your desires ip.
Open the file
# vi /etc/rc.confAppend the following line.
ifconfig_rl0_alias0="inet 192.168.3.1 netmask 255.255.255.255"
replace rl0 and 192.168.3.1 with your desired values.
2. Now add the following line# vi /etc/rc.conf
Now type <ESC>:wq to save and exitifconfig_interface="inet 192.168.1.1 netmask 255.255.255.0"substitute interface with your interface(eg:rl0,rl1,fxp0,em0..)
substitute 192.168.1.1 with your desired lan ip.
# /etc/rc.d/netif restart && /etc/rc.d/routing restart
Copyright © FreeBSD. All rights reserved. Blogger templates created by Templates Block
Powered by Blogger. Designed by