Pages

Friday, April 8, 2011

Setting up another NIC in Solaris

Nothing special: my Solaris box has a quad port network card (I think it is more like 2 dual port network cards). The first NIC is normally configured with an IP and netmask, for testing purpose I needed to setup the second one. Her is my configuration so far:

# ifconfig -a
...
bge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.2.1 netmask ffffff00 broadcast 192.168.2.255
        ether 0:3:ba:48:9d:2f

To make sure which NIC is the second one I need to look at the hardware:

# prtconf -D | grep network
        network, instance #0 (driver name: bge)
        network, instance #1 (driver name: bge)
        network, instance #2 (driver name: bge)
        network, instance #3 (driver name: bge)

Finally I can configure the second NIC:

# ifconfig bge1 plumb
# ifconfig bge1 up
# ifconfig bge1 192.168.2.2 netmask 255.255.255.0

And check the settings (ignore the index, I have 2 zone running on bge0):

# ifconfig -a
...
bge1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 5
        inet 192.168.2.2 netmask ffffff00 broadcast 192.168.2.255
        ether 0:3:ba:48:9d:30
...
#  ping 192.168.2.2
192.168.2.2 is alive

So far, nothing special.

No comments:

Post a Comment