내 Linux CentOS에는 두 개의 네트워크 인터페이스가 있습니다. 외부 네트워크를 통해 웹서버에 접속하려고 할 때이더리움 0잘 작동합니다. 하지만 내가 다음을 통해 액세스하려고 하면이더리움 1그것은 나에게 시간을 준다.
경로는 다음과 같습니다.
[root@fe fe]# ip route list
default via 192.168.10.1 dev eth0 proto dhcp metric 101
default via 192.168.18.1 dev eth1 proto dhcp metric 102
192.168.10.0/24 dev eth0 proto kernel scope link src 192.168.10.237 metric 101
192.168.18.0/24 dev eth1 proto kernel scope link src 192.168.18.14 metric 102
ip a
생성된 명령 입니다.
[fe@fe ~]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether d2:ce:a3:6d:a2:f4 brd ff:ff:ff:ff:ff:ff
inet 192.168.10.237/24 brd 192.168.10.255 scope global dynamic noprefixroute eth0
valid_lft 416sec preferred_lft 416sec
inet6 fe80::d0ce:a3ff:fe6d:a2f4/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 8a:be:5d:40:8b:34 brd ff:ff:ff:ff:ff:ff
inet 192.168.18.14/24 brd 192.168.18.255 scope global dynamic noprefixroute eth1
valid_lft 3584sec preferred_lft 3584sec
inet6 fe80::88be:5dff:fe40:8b34/64 scope link noprefixroute
valid_lft forever preferred_lft forever
tcpdump를 사용하여 ETH1이 요청을 수신했는지 확인할 수 있습니다.
[root@fe fe]# tcpdump -i eth1 port 80
dropped privs to tcpdump
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 262144 bytes
22:04:57.763317 IP 43.224.168.199.50770 > fe.lan.http: Flags [S], seq 2609591301, win 64240, options [mss 1412,nop,wscale 8,nop,nop,sackOK], length 0
22:04:57.764527 IP 43.224.168.199.50771 > fe.lan.http: Flags [S], seq 821872254, win 64240, options [mss 1412,nop,wscale 8,nop,nop,sackOK], length 0
22:04:58.021494 IP 43.224.168.199.50772 > fe.lan.http: Flags [S], seq 3220097528, win 64240, options [mss 1412,nop,wscale 8,nop,nop,sackOK], length 0