2010. 3. 30. 14:33

리눅스 dmesg 를 통한 eth 포트의 down / up 구분

리눅스 dmesg 를 통해서
서버에 연결된 랜포트들을 구분할 수 있다.

서버쪽의 랜포트를 뽑고 나면 eth 포트의 링크가 down 된게 되고
이것은 리눅스 서버에서 dmesg | grep eth 명령으로
맨 아래쪽에 업데이트가 된다.

즉 랜포트를 뽑고 서버에서 dmesg | grep eth 명령으로 확인하면
아래쪽에 링크 UP 과 DOWN 을 확인할 수 있다.

[root@mbuIVR1:~ ] dmesg | grep eth
divert: not allocating divert_blk for non-ethernet device lo
divert: allocating divert_blk for eth0
e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
divert: allocating divert_blk for eth1
e1000: eth1: e1000_probe: Intel(R) PRO/1000 Network Connection
divert: allocating divert_blk for eth2
e1000: eth2: e1000_probe: Intel(R) PRO/1000 Network Connection
divert: allocating divert_blk for eth3
e1000: eth3: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth0: e1000_watchdog_task: NIC Link is Up 1000 Mbps Full Duplex
e1000: eth0: e1000_watchdog_task: NIC Link is Down
e1000: eth0: e1000_watchdog_task: NIC Link is Up 1000 Mbps Full Duplex
e1000: eth1: e1000_watchdog_task: NIC Link is Up 1000 Mbps Full Duplex
e1000: eth1: e1000_watchdog_task: NIC Link is Down
e1000: eth1: e1000_watchdog_task: NIC Link is Up 1000 Mbps Full Duplex
e1000: eth2: e1000_watchdog_task: NIC Link is Up 100 Mbps Half Duplex
e1000: eth2: e1000_watchdog_task: NIC Link is Down
e1000: eth2: e1000_watchdog_task: NIC Link is Up 100 Mbps Full Duplex
e1000: eth3: e1000_watchdog_task: NIC Link is Up 100 Mbps Half Duplex
e1000: eth3: e1000_watchdog_task: NIC Link is Down
e1000: eth3: e1000_watchdog_task: NIC Link is Up 100 Mbps Full Duplex
divert: not allocating divert_blk for non-ethernet device sit0
eth2: no IPv6 routers present
eth3: no IPv6 routers present
eth1: no IPv6 routers present
eth0: no IPv6 routers present
e1000: eth2: e1000_watchdog_task: NIC Link is Down
eth2: no IPv6 routers present
e1000: eth2: e1000_watchdog_task: NIC Link is Up 100 Mbps Full Duplex
e1000: eth2: e1000_watchdog_task: NIC Link is Down
eth2: no IPv6 routers present
e1000: eth2: e1000_watchdog_task: NIC Link is Up 100 Mbps Full Duplex
e1000: eth2: e1000_watchdog_task: NIC Link is Down
e1000: eth0: e1000_watchdog_task: NIC Link is Down
e1000: eth2: e1000_watchdog_task: NIC Link is Up 100 Mbps Full Duplex
eth2: no IPv6 routers present
eth0: no IPv6 routers present
e1000: eth1: e1000_watchdog_task: NIC Link is Down
e1000: eth0: e1000_watchdog_task: NIC Link is Up 1000 Mbps Full Duplex
eth1: no IPv6 routers present
e1000: eth1: e1000_watchdog_task: NIC Link is Up 1000 Mbps Full Duplex
e1000: eth3: e1000_watchdog_task: NIC Link is Down
eth3: no IPv6 routers present
e1000: eth3: e1000_watchdog_task: NIC Link is Up 100 Mbps Full Duplex
[root@mbuIVR1:~ ]