smurgu
asked on
Adding Second nic in Solaris 10
I am tring to add a second nic in a T1000 running Solaris 10. After I add the nic with the config as follows:
bge0: flags=1000803<UP,BROADCAST ,MULTICAST ,IPv4> mtu 1500 index 2
inet 192.168.1.67 netmask ffffff00 broadcast 192.168.1.255
ether 0:21:28:10:a3:d0
bge1: flags=1000843<UP,BROADCAST ,RUNNING,M ULTICAST,I Pv4> mtu 1500 index 3
inet 192.168.1.68 netmask ffffff00 broadcast 192.168.1.255
ether 0:21:28:10:a3:d1
Evrething works fine but if I unplug the first nic there is no trafic in the server.
why I can not use the second nic if I unplug the first one even if the second nic is pluged and is running?
Thank you
bge0: flags=1000803<UP,BROADCAST
inet 192.168.1.67 netmask ffffff00 broadcast 192.168.1.255
ether 0:21:28:10:a3:d0
bge1: flags=1000843<UP,BROADCAST
inet 192.168.1.68 netmask ffffff00 broadcast 192.168.1.255
ether 0:21:28:10:a3:d1
Evrething works fine but if I unplug the first nic there is no trafic in the server.
why I can not use the second nic if I unplug the first one even if the second nic is pluged and is running?
Thank you
ASKER
I post that in my question.
bge0: flags=1000803<UP,BROADCAST ,MULTICAST ,IPv4> mtu 1500 index 2
inet 192.168.1.67 netmask ffffff00 broadcast 192.168.1.255
ether 0:21:28:10:a3:d0
bge1: flags=1000843<UP,BROADCAST ,RUNNING,M ULTICAST,I Pv4> mtu 1500 index 3
inet 192.168.1.68 netmask ffffff00 broadcast 192.168.1.255
ether 0:21:28:10:a3:d1
The fist interface is not running because I unplug the cable to see if the second one is working when the fisrt one is down.
bge0: flags=1000803<UP,BROADCAST
inet 192.168.1.67 netmask ffffff00 broadcast 192.168.1.255
ether 0:21:28:10:a3:d0
bge1: flags=1000843<UP,BROADCAST
inet 192.168.1.68 netmask ffffff00 broadcast 192.168.1.255
ether 0:21:28:10:a3:d1
The fist interface is not running because I unplug the cable to see if the second one is working when the fisrt one is down.
when you say unplug the first nic, do you mean the cable?
Also, why do you haveboth nics in the same subnet?
Also, why do you haveboth nics in the same subnet?
ASKER
Yes I unplug the cable.
Its not my network, and I don't have any control over its configuration. I need to use the second nic in case the first one fails without IPMP or link aggregation.
Its not my network, and I don't have any control over its configuration. I need to use the second nic in case the first one fails without IPMP or link aggregation.
can you show the output of
netstat -rn
netstat -rn
ASKER
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
default 192.168.1.161 UG 1 100
192.168.1.0 192.168.1.67 U 1 4 bge0
192.168.1.0 192.168.1.68 U 1 0 bge1
224.0.0.0 192.168.1.67 U 1 0 bge0
127.0.0.1 127.0.0.1 UH 4 117 lo0
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
default 192.168.1.161 UG 1 100
192.168.1.0 192.168.1.67 U 1 4 bge0
192.168.1.0 192.168.1.68 U 1 0 bge1
224.0.0.0 192.168.1.67 U 1 0 bge0
127.0.0.1 127.0.0.1 UH 4 117 lo0
OK, from the routing table, the network 192.168.1.0 is reachable through bge0 and bge1
If you shutdown the bge0 interface with
ifconfig bge0 down
do you still get the problem?
If you shutdown the bge0 interface with
ifconfig bge0 down
do you still get the problem?
ASKER
No if I put that interface down it works but I have to switches and each nic is plug in a diferent switch. I need to be able to send and receive trafic if one of the switch is down.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
can you give me an example of the script and also if you can tell me how this script will detect the link-failure. I know this is a diferent question than the original one let me know if I have to close this and open a new question.
Thank you,
Thank you,
Sorry that you closed the question before reaching a solution, but you can try to see if you can run snmp
and use
/usr/sfw/bin/snmpwalk
to get the interface status then try to do something.
Also you may try
/usr/sbin/ndd -get /dev/bge link_status
But I do not have two interfaces to test with and see what it return
and use
/usr/sfw/bin/snmpwalk
to get the interface status then try to do something.
Also you may try
/usr/sbin/ndd -get /dev/bge link_status
But I do not have two interfaces to test with and see what it return
ifconfig -a
what do you get?