전화를 걸면 ip addr show
모든 인터페이스와 해당 IP 주소가 포함된 출력을 받습니다(자세히 살펴보세요 eth7
).
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:1c:42:e9:3d:aa brd ff:ff:ff:ff:ff:ff
inet 172.11.98.248/16 brd 172.11.255.255 scope global eth1
3: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc cbq state UP qlen 1000
link/ether 00:1c:42:c6:d0:c4 brd ff:ff:ff:ff:ff:ff
inet 10.28.98.242/19 brd 10.28.127.255 scope global eth2
4: eth4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:1c:42:56:14:28 brd ff:ff:ff:ff:ff:ff
inet 10.28.98.249/24 scope global eth4
5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:1c:42:03:06:77 brd ff:ff:ff:ff:ff:ff
inet 10.28.98.230/19 brd 10.28.127.255 scope global eth3
6: eth7: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:1c:42:4d:cb:d7 brd ff:ff:ff:ff:ff:ff
inet 10.28.98.231/24 scope global eth7
inet 192.168.13.0/18 scope global eth7
7: eth5: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:1c:42:81:0a:a4 brd ff:ff:ff:ff:ff:ff
8: eth6: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:1c:42:5c:12:40 brd ff:ff:ff:ff:ff:ff
9: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether b2:c1:df:b1:29:c7 brd ff:ff:ff:ff:ff:ff
inet 10.47.130.2/24 brd 10.47.130.255 scope global br0
10: br1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether 52:b4:3a:90:f2:05 brd ff:ff:ff:ff:ff:ff
11: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/void
그러나 동일한 명령을 호출하면 ip addr show up
uped 인터페이스에 대해서만 이상한 결과가 나타납니다.
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:1c:42:e9:3d:aa brd ff:ff:ff:ff:ff:ff
inet 172.11.98.248/16 brd 172.11.255.255 scope global eth1
3: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc cbq state UP qlen 1000
link/ether 00:1c:42:c6:d0:c4 brd ff:ff:ff:ff:ff:ff
inet 10.28.98.242/19 brd 10.28.127.255 scope global eth2
4: eth4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:1c:42:56:14:28 brd ff:ff:ff:ff:ff:ff
inet 10.28.98.249/24 scope global eth4
5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:1c:42:03:06:77 brd ff:ff:ff:ff:ff:ff
inet 10.28.98.230/19 brd 10.28.127.255 scope global eth3
inet 10.28.98.231/24 scope global eth7
inet 192.168.13.0/18 scope global eth7
9: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether b2:c1:df:b1:29:c7 brd ff:ff:ff:ff:ff:ff
inet 10.47.130.2/24 brd 10.47.130.255 scope global br0
10: br1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether 52:b4:3a:90:f2:05 brd ff:ff:ff:ff:ff:ff
11: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/void
나는 닫힌 인터페이스가 출력에서 사라질 것이라고 예상했습니다. 그런데 좀 이상한 점은 그것들이 사라졌을 뿐만 아니라, 이전에 할당되었던 IP 주소 192.168.13.0/18
도 사라졌다는 것입니다.10.28.98.231/24
eth7
eth3
이것이 정상적인 행동입니까? 왜 이런 일이 발생합니까? 이러한 IP 주소가 eth3
다른 인터페이스가 아닌 인터페이스 에만 할당되는 이유는 무엇입니까 ?
답변1
이것은 실수입니다.이미 패치가 있어서 다음 버전에서는 수정될 것으로 예상됩니다. 감사해요우터신고해서요.