• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

S5800两台交换内网通了,访问不了外网

2022-09-14提问
  • 0关注
  • 0收藏,859浏览
粉丝:0人 关注:1人

问题描述:

两台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

接入交换机的配置:附件

2 个回答
粉丝:167人 关注:1人

1、路由配置

2、NAT配置

都发下

你发的只有交换机的配置

核心交换机可以正常连网的,核心交换机的配置 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

zhiliao_Ihxr1 发表时间:2022-09-14 更多>>

核心交换机可以正常连网的,核心交换机的配置 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

zhiliao_Ihxr1 发表时间:2022-09-14
粉丝:37人 关注:0人

感觉你路由写的不对,你这样,你把这个接入的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这个设备上)



254的地址就是H3C的登入界面。

zhiliao_Ihxr1 发表时间:2022-09-14 更多>>

核心没有DHCP,电脑接vlan20可以拼通210的其他的地址,但拼不通210.254

zhiliao_Ihxr1 发表时间:2022-09-14

是在核心交换机上添加ip route-static 192.168.220.1 255.255.255.0 192.168.210.1

zhiliao_Ihxr1 发表时间:2022-09-14
回复zhiliao_Ihxr1:

是在核心上面的设备里写(路由器?防火墙?)

悲剧塔 发表时间:2022-09-14

好的,我试下,谢谢!

zhiliao_Ihxr1 发表时间:2022-09-14

254的地址就是H3C的登入界面。

zhiliao_Ihxr1 发表时间:2022-09-14

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明