我最近安装了 Adtran Netvanta 4430 以在具有一点 VLAN 间路由的网络上执行一些基本 VLAN,但我遇到了一些奇怪的问题,这可能是由于我对路由器的经验不足。设置是在接口 0/1 上我有到 ONT 的上行链路,在接口 0/2 上它连接到交换机。我一定在配置方面遗漏了一些东西,因为这是我可以做的......
- 为 VLAN 创建中继端口和访问端口
- 从具有正确设置的 VLAN 的端口上的路由器获取 IP、DNS 服务器、名称服务器、域
- 从路由器Ping
8.8.8.8
和google.com
然而,我不能...
- Ping 从连接到外部的计算机切换,内部工作正常。
- 查找 DNS 以进行名称解析
- 从交换机 Ping (Adtran Netvanta 1534)
那么这可能是什么?我有这个配置,我试过搞乱 IP 路由(default-gateway
以及我忘记的其他东西),但无济于事。我也弄乱了访问控制列表,当我尝试应用它们时,我收到一个错误,指出Error: you must first assign an IPv4 address
可能相关。交换机是一个非常基本的设置(对于每个端口switchport access vlan (blah)
和一个switchport mode trunk
),但在我看来,路由器是有点令人困惑的地方,因为这是我第一次设置我已经做了很多阅读和研究,并且我讨厌寻求基本上看起来像“我不明白它,为我修复我的配置”的帮助(我试图不这样做)......但我现在损失很大,非常感谢任何帮助!
Building configuration...
!
!
! ADTRAN, Inc. OS version 18.01.03.00
! Boot ROM version 17.04.01.00
! Platform: NetVanta 4430, part number 1700630E1
! Serial number LBADTNXXXXXXXX
!
!
hostname "Router"
no enable password
!
clock timezone -8
clock no-auto-correct-DST
!
ip subnet-zero
ip classless
ip routing
ipv6 unicast-routing
!
!
ip name-server 8.8.8.8 8.8.4.4
!
!
no auto-config
!
no event-history
no logging forwarding
no logging email
!
no service password-encryption
!
!
!
ip firewall
no ip firewall alg msn
no ip firewall alg mszone
no ip firewall alg h323
!
!
!
!
!
!
!
!
!
no dot11ap access-point-control
!
!
!
!
ip dhcp-server excluded-address 10.10.3.1 10.10.3.3
ip dhcp-server excluded-address 10.10.10.1 10.10.10.15
!
ip dhcp-server pool “VLAN3”
network 10.10.3.0 255.255.255.192
domain-name “vlan3.com"
dns-server 8.8.8.8 (ISP Provided DNS)
default-router 10.10.3.1
!
ip dhcp-server pool “VLAN2”
network 10.10.10.0 255.255.255.0
default-router 10.10.10.1
!
ip dhcp-server pool “VLAN4”
network 192.168.5.0 255.255.255.0
domain-name “vlan4.com"
dns-server 8.8.8.8 (ISP Provided DNS)
default-router 192.168.5.1
!
ip dhcp-server pool “VLAN5”
network 10.10.5.0 255.255.255.192
domain-name “vlan5.com"
dns-server 8.8.8.8 (ISP Provided DNS)
default-router 10.10.5.1
!
ip dhcp-server pool “VLAN6”
network 10.10.6.0 255.255.255.0
domain-name “vlan6.com”
dns-server 8.8.8.8 (ISP Provided DNS)
default-router 10.10.6.1
!
ip dhcp-server pool "Canon 1”
default-router 192.168.5.1
host 192.168.5.234 255.255.255.0
hardware-address
f4:a9:97:xx:xx:xx ethernet
!
ip dhcp-server pool “printer2”
default-router 192.168.5.1
host 192.168.5.201 255.255.255.0
hardware-address 84:ba:3b:xx:xx:xx ethernet
!
ip dhcp-server pool "C5550"
!
!
!
!
!
!
!
no ethernet cfm
!
interface eth 0/1
no ip address
shutdown
!
!
!
interface gigabit-eth 0/1
ip address (EXTERNAL IP) 255.255.255.252
no shutdown
!
!
interface gigabit-eth 0/2
encapsulation 802.1q
no shutdown
!
interface gigabit-eth 0/2.2
description BLAH
vlan-id 2
ip address 10.10.10.1 255.255.255.0
no shutdown
interface gigabit-eth 0/2.3
description BLAH
vlan-id 3
ip address 10.10.3.1 255.255.255.192
no shutdown
interface gigabit-eth 0/2.4
description BLAH
vlan-id 4
ip address 192.168.5.1 255.255.255.0
no shutdown
interface gigabit-eth 0/2.5
description BLAH
vlan-id 5
ip address 10.10.5.1 255.255.255.192
no shutdown
interface gigabit-eth 0/2.6
description BLAH
vlan-id 6
ip address 10.10.6.1 255.255.255.0
no shutdown
!
!
!
!
!
!
!
!
!
ip access-list extended PermitAny
permit ip any any
!
ip access-list extended printers
permit ip 10.10.3.0 0.0.0.192 host 192.168.5.0
permit ip 10.10.2.0 0.0.0.255 192.168.5.0 0.0.0.255
permit ip 10.10.6.0 0.0.0.255 192.168.5.0 0.0.0.255
permit ip 10.10.3.0 0.0.0.192 192.168.5.0 0.0.0.255
!
!
!
!
ip policy-class print
allow list printers
nat source list PermitAny interface gigabit-ethernet 0/1 overload
!
!
!
ip route 0.0.0.0 0.0.0.0 (GATEWAY OF ONT)
!
no tftp server
no tftp server overwrite
no ip http server
no ip http secure-server
no ip snmp agent
no ip ftp server
ip ftp server default-filesystem flash
no ip scp server
no ip sntp server
!
!
!
!
!
!
!
!
ip sip udp 5060
ip sip tcp 5060
!
!
!
!
!
!
!
!
!
!
!
!
!
!
line con 0
no login
!
line telnet 0 4
login
no shutdown
line ssh 0 4
login local-userlist
no shutdown
!
!
!
!
!
end```