创建vlan 和 节点vlan 连通性排查

 

 

 

 

 

  原来是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]int vlanif 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]

 

posted on 2020-07-21 19:19  tycoon3  阅读(388)  评论(0编辑  收藏  举报

导航