go to file :
/etc/rc.conf
add this line
hostname=”sun.nixcraft.in”
# default vsnl router interface
defaultrouter=”202.54.1.200″
# Force 10Mbps for both public and private LAN interace
ifconfig_em0=”inet 10.20.110.2 netmask 255.255.255.192 media 10baseT/UTP mediaopt full-duplex”
ifconfig_em1=”inet 202.52.1.2 netmask 255.255.255.248 media 10baseT/UTP mediaopt full-duplex”
ifconfig_em0_alias0=”inet 10.20.1.226 netmask 255.255.255.0″
ifconfig_em0_alias1=”inet 10.20.1.227 netmask 255.255.255.0″
ifconfig_em0_alias2=”inet 10.20.1.228 netmask 255.255.255.0″
ifconfig_em0_alias3=”inet 10.20.1.229 netmask 255.255.255.0″
ifconfig_em0_alias4=”inet 10.20.1.230 netmask 255.255.255.0″
set nameserver in
/etc/resolv.conf
then reboot service
# /etc/rc.d/netif restart && /etc/rc.d/routing restart