建立vlan 和 節點vlan 連通性排查
阿新 • • 發佈:2020-07-21
原來是A機房的交換機沒有建立vlan4000
伺服器:
root@ubuntu:/home/ubuntu# ip link add link enahisic2i3 name enah2i3.4000 type vlan id 4000 root@ubuntu:/home/ubuntu# ip a add 10.0.6.82/24 dev enah2i3.4000 root@ubuntu:/home/ubuntu# ip link set enah2i3.4000 up root@ubuntu:/home/ubuntu# ping 10.0.6.8 PING 10.0.6.8 (10.0.6.8) 56(84) bytes of data.64 bytes from 10.0.6.8: icmp_seq=1 ttl=254 time=18.9 ms 64 bytes from 10.0.6.8: icmp_seq=2 ttl=254 time=0.755 ms ^C --- 10.0.6.8 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.755/9.847/18.940/9.093 ms root@ubuntu:/home/ubuntu#
交換機
[~JG05-SW40GEto10GE_CE6855]intvlanif 4000 [*JG05-SW40GEto10GE_CE6855-Vlanif4000]ip add 10.0.6.8/24 ^ Error: Wrong parameter found at '^' position. [*JG05-SW40GEto10GE_CE6855-Vlanif4000]ip add 10.0.6.8 24 [*JG05-SW40GEto10GE_CE6855-Vlanif4000]commit [~JG05-SW40GEto10GE_CE6855-Vlanif4000]quit [~JG05-SW40GEto10GE_CE6855]
[~JG05-SW40GEto10GE_CE6855]display ip routing-table Proto: Protocol Pre: Preference Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route ------------------------------------------------------------------------------ Routing Table : _public_ Destinations : 14 Routes : 15 Destination/Mask Proto Pre Cost Flags NextHop Interface 0.0.0.0/0 Static 60 0 RD 10.10.29.254 Vlanif1029 Static 60 0 RD 10.10.30.254 Vlanif1030 10.0.6.0/24 Direct 0 0 D 10.0.6.8 Vlanif4000 10.0.6.8/32 Direct 0 0 D 127.0.0.1 Vlanif4000 10.0.6.255/32 Direct 0 0 D 127.0.0.1 Vlanif4000 10.10.xx.0/24 Direct 0 0 D 10.10.xx.252 Vlanif1029 10.10.xx.252/32 Direct 0 0 D 127.0.0.1 Vlanif1029 10.10.xx.255/32 Direct 0 0 D 127.0.0.1 Vlanif1029 [~JG05-SW40GEto10GE_CE6855]ping 10.0.6.82 PING 10.0.6.82: 56 data bytes, press CTRL_C to break Reply from 10.0.6.82: bytes=56 Sequence=1 ttl=64 time=1 ms Reply from 10.0.6.82: bytes=56 Sequence=2 ttl=64 time=1 ms Reply from 10.0.6.82: bytes=56 Sequence=3 ttl=64 time=1 ms Reply from 10.0.6.82: bytes=56 Sequence=4 ttl=64 time=1 ms --- 10.0.6.82 ping statistics --- 4 packet(s) transmitted 4 packet(s) received 0.00% packet loss round-trip min/avg/max = 1/1/1 ms [~JG05-SW40GEto10GE_CE6855]