Add IP in Solaris

Temporary IP

1. Check the available physical port. Let say, port 1 is available, so plug in the LAN cable into the port 1.

2. Check the existing network so that the new IP is not clash with the old IP.

# ifconfig -a
 lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
 inet 127.0.0.1 netmask ff000000
 bge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
 inet 192.168.1.10 netmask ffffff00 broadcast 192.168.1.1
 ether X:X:XX:XX:XX:XX

3. So, type this command to add the new IP.

# ifconfig bge1 plumb
# ifconfig bge1 192.168.1.20 netmask 255.255.255.0 up
# route add default 192.168.1.1
# ifconfig –a
 lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
 inet 127.0.0.1 netmask ff000000
 bge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
 inet 192.168.1.10 netmask ffffff00 broadcast 192.168.1.1
 ether X:X:XX:XX:XX:XX
 bge1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
 inet 192.168.1.20 netmask ffffff00 broadcast 192.168.1.1
 ether x:x:xx:xx:xx:xx

You May Also Like

Leave a Reply?