两台5800做了静态路由可以互通,一台接入的交换机不能访问外网,拼不通DNS
两台5800做了静态路由互通,核心交换机的配置ip route-static 0.0.0.0 0 192.168.210.254 ip route-static 192.168.220.0 24 192.168.210.5
接入交换机的配置:附件
(0)
1、路由配置
2、NAT配置
都发下
你发的只有交换机的配置
(0)
核心交换机可以正常连网的,核心交换机的配置 ysname fy-s5800 # clock timezone beijing add 08:00:00 clock protocol none # telnet server enable # irf mac-address persistent timer irf auto-update enable undo irf link-delay irf member 1 priority 1 # loopback-detection global enable vlan 1 to 4094 loopback-detection interval-time 250 # password-recovery enable # vlan 1 # vlan 210 # vlan 212 to 219 # traffic classifier anti_wana operator and if-match acl 3100 # traffic behavior anti_wana filter deny # qos policy anti_wana classifier anti_wana behavior anti_wana # interface NULL0 # interface Vlan-interface210 ip address 192.168.210.1 255.255.255.0 # interface Vlan-interface212 ip address 192.168.212.1 255.255.255.0 # interface Vlan-interface213 ip address 192.168.213.1 255.255.255.0 # interface Vlan-interface218 ip address 192.168.218.1 255.255.255.0 # interface GigabitEthernet1/0/1 port link-mode bridge description 集团总线 port access vlan 210 # interface GigabitEthernet1/0/2 port link-mode bridge port access vlan 210 # interface GigabitEthernet1/0/3 port link-mode bridge port access vlan 210 # interface GigabitEthernet1/0/4 port link-mode bridge port access vlan 210 loopback-detection enable vlan 210 loopback-detection action shutdown # interface GigabitEthernet1/0/5 port link-mode bridge port access vlan 210 # interface GigabitEthernet1/0/6 port link-mode bridge port access vlan 210 # interface GigabitEthernet1/0/7 port link-mode bridge port access vlan 210 # interface GigabitEthernet1/0/8 port link-mode bridge port access vlan 210 # interface GigabitEthernet1/0/9 port link-mode bridge description 210250监控录像机 port access vlan 210 stp edged-port # interface GigabitEthernet1/0/10 port link-mode bridge port access vlan 210 # interface GigabitEthernet1/0/11 port link-mode bridge # interface GigabitEthernet1/0/12 port link-mode bridge # interface GigabitEthernet1/0/13 port link-mode bridge # interface GigabitEthernet1/0/14 port link-mode bridge # interface GigabitEthernet1/0/15 port link-mode bridge # interface GigabitEthernet1/0/16 port link-mode bridge description 218250录像机 port access vlan 218 stp edged-port # interface GigabitEthernet1/0/17 port link-mode bridge port access vlan 218 # interface GigabitEthernet1/0/18 port link-mode bridge port access vlan 218 # interface GigabitEthernet1/0/19 port link-mode bridge port access vlan 212 # interface GigabitEthernet1/0/20 port link-mode bridge port access vlan 212 # interface GigabitEthernet1/0/21 port link-mode bridge description 研究院 port access vlan 213 # interface GigabitEthernet1/0/22 port link-mode bridge port access vlan 213 # interface GigabitEthernet1/0/23 port link-mode bridge port link-type trunk port trunk permit vlan all # interface GigabitEthernet1/0/24 port link-mode bridge description 汇聚三层5800 port link-type trunk port trunk permit vlan all # interface M-GigabitEthernet0/0/0 # interface Ten-GigabitEthernet1/0/25 port link-mode bridge # interface Ten-GigabitEthernet1/0/26 port link-mode bridge # interface Ten-GigabitEthernet1/0/27 port link-mode bridge # interface Ten-GigabitEthernet1/0/28 port link-mode bridge # scheduler logfile size 16 # line class aux user-role network-admin # line class vty user-role network-operator # line aux 0 user-role network-admin # line vty 0 15 authentication-mode scheme user-role network-operator # line vty 16 63 user-role network-operator # ip route-static 0.0.0.0 0 192.168.210.254 ip route-static 192.168.220.0 24 192.168.210.5 # ssh server enable ssh user jfadmin service-type stelnet authentication-type password # arp static 192.168.210.21 e43a-6e35-d81c arp static 192.168.210.22 e43a-6e40-5e5b arp static 192.168.210.29 e43a-6e35-d580 arp static 192.168.210.31 e43a-6e35-d6a9 arp static 192.168.210.32 e43a-6e35-d83c arp static 192.168.210.43 e43a-6e35-d517 arp static 192.168.210.66 18f2-2c9a-8fad # qos apply policy anti_wana global inbound qos apply policy anti_wana global outbound # acl number 3100 rule 10 deny tcp destination-port eq 135 rule 15 deny tcp destination-port eq 137 rule 20 deny tcp destination-port eq 138 rule 25 deny tcp destination-port eq 139 rule 35 deny udp destination-port eq 135 rule 40 deny udp destination-port eq netbios-ns rule 45 deny udp destination-port eq netbios-dgm rule 50 deny udp destination-port eq netbios-ssn
感觉你路由写的不对,你这样,你把这个接入的vlan 2接口ip删了,(不用谢接口IP)。如果你核心写了dhcp的话,然后找个主机接在这个vlan20的物理接口下,这样这个台主机应该至少可以ping通你这个192.168.210.254,在往上ping254这台设备的外网接口,也应该是通的,如果不通,那说明254这台设备没写会城路由(没写去往vlan20网段的地址,下一跳抛给核心,即192.168.210.1)
ip route-static 192.168.220.1 255.255.255.0 192.168.210.1
(把这句写在192.168.210.254这个设备上)
(0)
254的地址就是H3C的登入界面。
核心没有DHCP,电脑接vlan20可以拼通210的其他的地址,但拼不通210.254
是在核心交换机上添加ip route-static 192.168.220.1 255.255.255.0 192.168.210.1
好的,我试下,谢谢!
254的地址就是H3C的登入界面。
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
核心交换机可以正常连网的,核心交换机的配置 ysname fy-s5800 # clock timezone beijing add 08:00:00 clock protocol none # telnet server enable # irf mac-address persistent timer irf auto-update enable undo irf link-delay irf member 1 priority 1 # loopback-detection global enable vlan 1 to 4094 loopback-detection interval-time 250 # password-recovery enable # vlan 1 # vlan 210 # vlan 212 to 219 # traffic classifier anti_wana operator and if-match acl 3100 # traffic behavior anti_wana filter deny # qos policy anti_wana classifier anti_wana behavior anti_wana # interface NULL0 # interface Vlan-interface210 ip address 192.168.210.1 255.255.255.0 # interface Vlan-interface212 ip address 192.168.212.1 255.255.255.0 # interface Vlan-interface213 ip address 192.168.213.1 255.255.255.0 # interface Vlan-interface218 ip address 192.168.218.1 255.255.255.0 # interface GigabitEthernet1/0/1 port link-mode bridge description 集团总线 port access vlan 210 # interface GigabitEthernet1/0/2 port link-mode bridge port access vlan 210 # interface GigabitEthernet1/0/3 port link-mode bridge port access vlan 210 # interface GigabitEthernet1/0/4 port link-mode bridge port access vlan 210 loopback-detection enable vlan 210 loopback-detection action shutdown # interface GigabitEthernet1/0/5 port link-mode bridge port access vlan 210 # interface GigabitEthernet1/0/6 port link-mode bridge port access vlan 210 # interface GigabitEthernet1/0/7 port link-mode bridge port access vlan 210 # interface GigabitEthernet1/0/8 port link-mode bridge port access vlan 210 # interface GigabitEthernet1/0/9 port link-mode bridge description 210250监控录像机 port access vlan 210 stp edged-port # interface GigabitEthernet1/0/10 port link-mode bridge port access vlan 210 # interface GigabitEthernet1/0/11 port link-mode bridge # interface GigabitEthernet1/0/12 port link-mode bridge # interface GigabitEthernet1/0/13 port link-mode bridge # interface GigabitEthernet1/0/14 port link-mode bridge # interface GigabitEthernet1/0/15 port link-mode bridge # interface GigabitEthernet1/0/16 port link-mode bridge description 218250录像机 port access vlan 218 stp edged-port # interface GigabitEthernet1/0/17 port link-mode bridge port access vlan 218 # interface GigabitEthernet1/0/18 port link-mode bridge port access vlan 218 # interface GigabitEthernet1/0/19 port link-mode bridge port access vlan 212 # interface GigabitEthernet1/0/20 port link-mode bridge port access vlan 212 # interface GigabitEthernet1/0/21 port link-mode bridge description 研究院 port access vlan 213 # interface GigabitEthernet1/0/22 port link-mode bridge port access vlan 213 # interface GigabitEthernet1/0/23 port link-mode bridge port link-type trunk port trunk permit vlan all # interface GigabitEthernet1/0/24 port link-mode bridge description 汇聚三层5800 port link-type trunk port trunk permit vlan all # interface M-GigabitEthernet0/0/0 # interface Ten-GigabitEthernet1/0/25 port link-mode bridge # interface Ten-GigabitEthernet1/0/26 port link-mode bridge # interface Ten-GigabitEthernet1/0/27 port link-mode bridge # interface Ten-GigabitEthernet1/0/28 port link-mode bridge # scheduler logfile size 16 # line class aux user-role network-admin # line class vty user-role network-operator # line aux 0 user-role network-admin # line vty 0 15 authentication-mode scheme user-role network-operator # line vty 16 63 user-role network-operator # ip route-static 0.0.0.0 0 192.168.210.254 ip route-static 192.168.220.0 24 192.168.210.5 # ssh server enable ssh user jfadmin service-type stelnet authentication-type password # arp static 192.168.210.21 e43a-6e35-d81c arp static 192.168.210.22 e43a-6e40-5e5b arp static 192.168.210.29 e43a-6e35-d580 arp static 192.168.210.31 e43a-6e35-d6a9 arp static 192.168.210.32 e43a-6e35-d83c arp static 192.168.210.43 e43a-6e35-d517 arp static 192.168.210.66 18f2-2c9a-8fad # qos apply policy anti_wana global inbound qos apply policy anti_wana global outbound # acl number 3100 rule 10 deny tcp destination-port eq 135 rule 15 deny tcp destination-port eq 137 rule 20 deny tcp destination-port eq 138 rule 25 deny tcp destination-port eq 139 rule 35 deny udp destination-port eq 135 rule 40 deny udp destination-port eq netbios-ns rule 45 deny udp destination-port eq netbios-dgm rule 50 deny udp destination-port eq netbios-ssn