Cisco 2960 和 Cisco 871 - 非默认 VLAN 上没有连接

网络工程 思科 路由器 局域网 思科-2960 实验室
2022-03-06 10:51:01
  1. 无法从非默认 vlan 获得 Internet 连接。
  2. 怀疑路由器配置不足
  3. 在 2960 (10,20,30,40,50) 和 Gig 端口 0/1 上创建的五个 vlan 设置为中继。
  4. 连接到交换机端口 Gig 0/1 的路由器上的端口 f0 设置为带有 dot1q 的中继
  5. 由于综合业务路由器上的F0-3端口是交换端口,所以不能设置子接口。
  6. 在路由器上设置了 Vlan 接口来代替子接口

任何帮助或见解将不胜感激。

Cisco 871 路由器配置

    Current configuration : 2635 bytes
    !
    version 12.3
    no service pad
    service timestamps debug datetime msec
    service timestamps log datetime msec
    service password-encryption
    !
    hostname xx871
    !
    boot-start-marker
    boot-end-marker
    !
    enable password 7 095641001B171205
    !
    username xx871 password 7 0109090D59190318
    no aaa new-model
    ip subnet-zero
    ip cef
    ip dhcp excluded-address 192.168.1.1 192.168.1.10
    !
    ip dhcp pool MYLAB
       import all
       network 192.168.1.0 255.255.255.0
       domain-name wr
       default-router 192.168.1.10
       dns-server 208.67.222.222 208.67.220.220
       lease 5
    !
    !
    ip domain name MYLAB.com
    ip ssh version 2
    no ftp-server write-enable
    !
    !
    !
    spanning-tree portfast bpduguard
    !
    !
    !
    !
    !
    interface Loopback0
     ip address 1.1.1.1 255.255.255.0
     ip nat outside
     ip virtual-reassembly
    !
    interface FastEthernet0
     switchport trunk allowed vlan 1,2,10,20,30,40,50,1002-1005
     switchport mode trunk
     no ip address
     dot1q tunneling ethertype 0x9100
    !
    interface FastEthernet1
     no ip address
    !
    interface FastEthernet2
     no ip address
     shutdown
    !
    interface FastEthernet3
     no ip address
     shutdown
    !
    interface FastEthernet4
     ip address 10.0.0.100 255.255.255.0
     ip nat outside
     ip virtual-reassembly
     duplex auto
     speed auto
    !
    interface Vlan1
     ip address 192.168.1.10 255.255.255.0
     ip nat inside
     ip virtual-reassembly
    !
    interface Vlan10
     ip address 192.168.10.254 255.255.255.0
    !
    interface Vlan20
     ip address 192.168.20.254 255.255.255.0
    !
    interface Vlan30
     ip address 192.168.30.254 255.255.255.0
    !
    interface Vlan40
     ip address 192.168.40.254 255.255.255.0
    !
    interface Vlan50
     ip address 192.168.50.254 255.255.255.0
    !
    router ospf 1
     router-id 1.1.1.0
     log-adjacency-changes
     auto-cost reference-bandwidth 1000
     passive-interface FastEthernet4
     network 10.0.0.0 0.255.255.255 area 0
     network 192.0.0.0 0.255.255.255 area 0
    !
    ip classless
    ip route 0.0.0.0 0.0.0.0 10.0.0.1
    !
    no ip http server
    no ip http secure-server
    ip nat inside source list 100 interface FastEthernet4 overload
    !
    access-list 100 permit ip 192.168.1.0 0.0.0.255 any
    access-list 100 permit ip 192.168.10.0 0.0.0.255 any
    access-list 100 permit ip 192.168.20.0 0.0.0.255 any
    access-list 100 permit ip 192.168.30.0 0.0.0.255 any
    access-list 100 permit ip 192.168.40.0 0.0.0.255 any
    access-list 100 permit ip 192.168.50.0 0.0.0.255 any
    !
    control-plane
    !
    
    !
    line con 0
     logging synchronous
     no modem enable
     transport preferred all
     transport output all
    line aux 0
     transport preferred all
     transport output all
    line vty 0 4
     login local
     transport preferred all
     transport input ssh
     transport output all
    !
    scheduler max-task-time 5000
    end      

2960 开关配置

    Current configuration : 2977 bytes
    !
    version 12.2
    no service pad
    service timestamps debug uptime
    service timestamps log uptime
    no service password-encryption
    !
    hostname xxS871
    !
    enable password zoibrew
    !
    username xxs871 password 0 xxxxx
    no aaa new-model
    system mtu routing 1500
    ip subnet-zero
    !
    ip domain-name MYLAB.com
    !
    !
    !
    no file verify auto
    spanning-tree mode pvst
    spanning-tree extend system-id
    !
    vlan internal allocation policy ascending
    !
    interface FastEthernet0/1
     switchport access vlan 10
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/2
     switchport access vlan 10
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/3
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/4
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/5
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/6
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/7
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/8
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/9
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/10
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/11
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/12
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/13
     switchport access vlan 20
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/14
     switchport access vlan 20
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/15
     switchport access vlan 20
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/16
     switchport access vlan 20
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/17
     switchport access vlan 30
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/18
     switchport access vlan 30
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/19
     switchport access vlan 40
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/20
     switchport access vlan 40
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/21
     switchport access vlan 50
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/22
     switchport access vlan 50
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/23
     switchport access vlan 50
     switchport mode access
     switchport nonegotiate
    !
    interface FastEthernet0/24
     switchport access vlan 50
     switchport mode access
     switchport nonegotiate
    !
    interface GigabitEthernet0/1
     switchport mode trunk
    !
    interface GigabitEthernet0/2
    !
    interface Vlan1
     ip address 192.168.1.5 255.255.255.0
     no ip route-cache
    !
    ip default-gateway 192.168.1.10
    ip http server
    !
    control-plane
    !
    !
    line con 0
    line vty 0 4
     login local
     transport input telnet
    line vty 5 15
     login local
     transport input telnet
    !
    end
0个回答
没有发现任何回复~