eNSP模拟器下,vlan不通

PC1:10.0.4.2

PC2:10.0.8.2

PC3:10.0.7.2

问题:PC1 ping10.0.5.1通,PC1 ping10.0.6.1不通

PC2ping10.0.5.1不通,

PC3ping10.0.6.2通,PC3ping 10.0.6.1不通

 

R1的配置和路由表:

配置
[R1]display  current-configuration all 
[V200R003C00]
#
 sysname R1
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 autosave interval on
 autosave interval 10
 autosave time 08:10:01
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
 drop illegal-mac alarm
#
vlan batch 5 to 6
#
 wlan ac-global carrier id other ac id 0
#
 set cpu-usage threshold 80 restore 75
#
aaa 
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default 
 domain default_admin 
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
#
firewall zone Local
 priority 15
#
interface Vlanif5
 description Didian1De
 ip address 10.0.5.1 255.255.255.0 
#
interface Vlanif6
 ip address 10.0.6.1 255.255.255.0 
#
interface Ethernet0/0/0
#
interface Ethernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 6
#
interface Ethernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 5
#
interface Ethernet0/0/3
#
interface Ethernet0/0/4
#
interface Ethernet0/0/5
#
interface Ethernet0/0/6
#
interface Ethernet0/0/7
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 10.0.6.2
ip route-static 10.0.4.0 255.255.255.0 10.0.5.2
ip route-static 10.0.8.0 255.255.255.0 10.0.6.2
#
user-interface con 0
 authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return




路由表

[R1]display  ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 13       Routes : 13       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   Static  60   0          RD   10.0.6.2        Vlanif6
       10.0.4.0/24  Static  60   0          RD   10.0.5.2        Vlanif5
       10.0.5.0/24  Direct  0    0           D   10.0.5.1        Vlanif5
       10.0.5.1/32  Direct  0    0           D   127.0.0.1       Vlanif5
     10.0.5.255/32  Direct  0    0           D   127.0.0.1       Vlanif5
       10.0.6.0/24  Direct  0    0           D   10.0.6.1        Vlanif6
       10.0.6.1/32  Direct  0    0           D   127.0.0.1       Vlanif6
     10.0.6.255/32  Direct  0    0           D   127.0.0.1       Vlanif6
       10.0.8.0/24  Static  60   0          RD   10.0.6.2        Vlanif6
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

SW3的配置和路由表:

配置
[SW3]display current-configuration 
#
sysname SW3
#
info-center source default channel 0 trap state off level warning
#
vlan batch 4 to 5 8
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password simple admin
 local-user admin service-type http
#
interface Vlanif1
#
interface Vlanif4
 ip address 10.0.4.1 255.255.255.0
#
interface Vlanif5
 ip address 10.0.5.2 255.255.255.0
#
interface Vlanif8
 ip address 10.0.8.1 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 4 to 5 8
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 4 to 5 8
#
interface GigabitEthernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 4 to 5 8
#
interface GigabitEthernet0/0/4
#
interface GigabitEthernet0/0/5
#
interface GigabitEthernet0/0/6
#
interface GigabitEthernet0/0/7
#
interface GigabitEthernet0/0/8
#
interface GigabitEthernet0/0/9
#
interface GigabitEthernet0/0/10
#
interface GigabitEthernet0/0/11
#
interface GigabitEthernet0/0/12
#
interface GigabitEthernet0/0/13
#
interface GigabitEthernet0/0/14
#
interface GigabitEthernet0/0/15
#
interface GigabitEthernet0/0/16
#
interface GigabitEthernet0/0/17
#
interface GigabitEthernet0/0/18
#
interface GigabitEthernet0/0/19
#
interface GigabitEthernet0/0/20
#
interface GigabitEthernet0/0/21
#
interface GigabitEthernet0/0/22
#
interface GigabitEthernet0/0/23
#
interface GigabitEthernet0/0/24
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 10.0.5.1
#
user-interface con 0
user-interface vty 0 4
#
return



路由表
[SW3]display    ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 9        Routes : 9        

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   Static  60   0          RD   10.0.5.1        Vlanif5
       10.0.4.0/24  Direct  0    0           D   10.0.4.1        Vlanif4
       10.0.4.1/32  Direct  0    0           D   127.0.0.1       Vlanif4
       10.0.5.0/24  Direct  0    0           D   10.0.5.2        Vlanif5
       10.0.5.2/32  Direct  0    0           D   127.0.0.1       Vlanif5
       10.0.8.0/24  Direct  0    0           D   10.0.8.1        Vlanif8
       10.0.8.1/32  Direct  0    0           D   127.0.0.1       Vlanif8
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0

 

R2的配置和路由表

配置
R2]display  current-configuration 
[V200R003C00]
#
 sysname R2
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 autosave interval on
 autosave interval 10
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
 drop illegal-mac alarm
#
vlan batch 6 to 7
#
 wlan ac-global carrier id other ac id 0
#
 set cpu-usage threshold 80 restore 75
#
aaa 
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default 
 domain default_admin 
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
#
firewall zone Local
 priority 15
#
interface Vlanif6
 ip address 10.0.6.2 255.255.255.0 
#
interface Vlanif7
 ip address 10.0.7.1 255.255.255.0 
#
interface Ethernet0/0/0
#
interface Ethernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 7
#
interface Ethernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 6
#
interface Ethernet0/0/3
#
interface Ethernet0/0/4
#
interface Ethernet0/0/5
#
interface Ethernet0/0/6
#
interface Ethernet0/0/7
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
#
interface NULL0
#
rip 1
 network 10.0.0.0
#
ip route-static 0.0.0.0 0.0.0.0 10.0.6.1
#
user-interface con 0
 authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return




路由表
[R2]display    ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 11       Routes : 11       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   Static  60   0          RD   10.0.6.1        Vlanif6
       10.0.6.0/24  Direct  0    0           D   10.0.6.2        Vlanif6
       10.0.6.2/32  Direct  0    0           D   127.0.0.1       Vlanif6
     10.0.6.255/32  Direct  0    0           D   127.0.0.1       Vlanif6
       10.0.7.0/24  Direct  0    0           D   10.0.7.1        Vlanif7
       10.0.7.1/32  Direct  0    0           D   127.0.0.1       Vlanif7
     10.0.7.255/32  Direct  0    0           D   127.0.0.1       Vlanif7
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0