1. Loging as root.
root@agendacon # id
uid=0(root) gid=0(root)
2. Enable NIC with it's drivers:
root@agendacon # ifconfig -a plumb
3. View which interfaces are available
root@agendacon # ifconfig -a
lo0: flags=2001000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
bge0: flags=1000843 mtu 1500 index 2
inet 172.28.255.240 netmask fffffc00 broadcast 172.28.255.255
groupname ipmp1
ether 0:3:ba:9b:ab:e9
bge0:1: flags=9040843 mtu 1500 index 2
inet 172.28.255.238 netmask fffffc00 broadcast 172.28.255.255
bge1: flags=19040803 mtu 1500 index 3
inet 172.28.255.239 netmask fffffc00 broadcast 172.28.255.255
groupname ipmp1
ether 0:3:ba:9b:ab:ea
bge2: flags=1000802 mtu 1500 index 5
inet 0.0.0.0 netmask 0
ether 0:3:ba:9b:ab:eb
bge3: flags=1000802 mtu 1500 index 6
inet 0.0.0.0 netmask 0
ether 0:3:ba:9b:ab:ec 4. Identify the interface you want to configure:
root@agendacon # ifconfig bge3
bge3: flags=1000802 mtu 1500 index 6
inet 0.0.0.0 netmask 0
ether 0:3:ba:9b:ab:ec 5. Configure IP Address and Default gateway:
root@agendacon # ifconfig bge3 192.168.100.200 netmask 255.255.255.0 up
root@agendacon # ifconfig bge3
bge3: flags=1000803
mtu 1500 index 6
inet 192.168.100.200 netmask ffffff00 broadcast 192.168.100.255
ether 0:3:ba:9b:ab:ec
root@agendacon # route add default 192.168.100.254
add net default: gateway 192.168.100.254
root@agendacon # netstat -nr
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.100.0 192.168.100.200 U 1 0 bge3
default 192.168.100.254 UG 1 0
127.0.0.1 127.0.0.1 UH 2 36 lo0
root@agendacon #
6. To delete old default router:
root@agendacon # route delete default 192.168.100.1
delete net default: gateway 192.168.100.1
7. Make permanent the previous changes.
# vi /etc/hosts
127.0.0.1 localhost
192.168.100.200 myhostname
:wq! (save and quit)
# vi /etc/inet/hosts
127.0.0.1 localhost
192.168.100.200 myhostname
:wq! (save and quit)
# vi /etc/hostname.bge3
myhostname
:wq! (save and quit)
# vi /etc/netmasks
192.168.100.0 255.255.255.xxx
:wq! (save and quit)
# vi /etc/defaultrouter
192.168.100.254
:wq! (save and quit)