配置如下 [H3C]dis curr # version 7.1.064, Release 0707P21 # sysname H3C # dhcp enable dhcp server always-broadcast # dns proxy enable # password-recovery enable # vlan 1 # dhcp server ip-pool 0 gateway-list 172.16.0.1 network 172.16.0.0 mask 255.255.0.0 address range 172.16.0.2 172.16.0.254 dns-list 172.16.0.1 # dhcp server ip-pool lan1 gateway-list 192.168.0.1 network 192.168.0.0 mask 255.255.254.0 address range 192.168.1.2 192.168.1.254 dns-list 192.168.0.1 # controller Cellular0/0 # interface Aux0 # interface NULL0 # interface LoopBack0 # interface Vlan-interface1 ip address 192.168.0.1 255.255.254.0 tcp mss 1280 # interface GigabitEthernet0/0 port link-mode route description Multiple_Line ip address 1.1.1.91 255.255.255.0 dns server 221.5.88.88 nat outbound nat outbound 2000 # interface GigabitEthernet0/1 port link-mode route # interface GigabitEthernet0/2 port link-mode route ip address 172.16.0.1 255.255.0.0 arp authorized enable dhcp apply-policy 0 # interface GigabitEthernet0/3 port link-mode bridge # interface GigabitEthernet0/4 port link-mode bridge # interface GigabitEthernet0/5 port link-mode bridge # interface GigabitEthernet0/6 port link-mode bridge # interface GigabitEthernet0/7 port link-mode bridge # interface GigabitEthernet0/8 port link-mode bridge # interface GigabitEthernet0/9 port link-mode bridge # scheduler logfile size 16 # line class aux user-role network-admin # line class tty user-role network-operator # line class usb user-role network-admin # line class vty user-role network-operator # line aux 0 user-role network-admin # line vty 0 63 authentication-mode scheme user-role network-operator # ip route-static 0.0.0.0 0 1.1.1.1 # acl basic 2000 rule 0 permit source 172.16.0.0 0.0.0.255 # password-control enable undo password-control aging enable undo password-control history enable password-control length 6 password-control login-attempt 3 exceed lock-time 10 password-control update-interval 0 password-control login idle-time 0 password-control complexity user-name check # domain system # domain default enable system # role name level-0 description Predefined level-0 role # role name level-1 description Predefined level-1 role # role name level-2 description Predefined level-2 role # role name level-3 description Predefined level-3 role # role name level-4 description Predefined level-4 role # role name level-5 description Predefined level-5 role # role name level-6 description Predefined level-6 role # role name level-7 description Predefined level-7 role # role name level-8 description Predefined level-8 role # role name level-9 description Predefined level-9 role # role name level-10 description Predefined level-10 role # role name level-11 description Predefined level-11 role # role name level-12 description Predefined level-12 role # role name level-13 description Predefined level-13 role # role name level-14 description Predefined level-14 role # user-group system # local-user admin class manage service-type telnet http authorization-attribute user-role network-admin # ip http enable # wlan global-configuration # wlan ap-group default-group vlan 1 #
联通设备接路由器,路由器ping不通移联通网关。
(0)
最佳答案
您好,请知:
关于路由器设置固定IP后不能上网,以下是排查要点,请参考:
1、跳过路由器,电脑直接连接外网线路,设置固定IP看是否能上网。
2、看到有默认路由ip route-static 0.0.0.0 0 1.1.1.1,需确保1.1.1.1这个地址是否能PING通,PING不通的话是无法上网的,需确认运营商的下一跳是1.1.1.1这个IP地址。
3、看到了外网口有nat outbound nat outbound 2000,可以把nat outbound 2000去掉了看下,先不做上网的内网网段限制看下效果。
4、检查外网线路是否有问题。
5、以下是MSR2600的用户手册连接,请参考:
https://www.h3c.com/cn/Service/Document_Software/Document_Center/Routers/Catalog/MSR/MSR_2600/
(0)
单机测试固定ip是能上网的,但是接入路由器,是ping不通运营商的网关。
看到了外网口有nat outbound nat outbound 2000,可以把nat outbound 2000去掉了看下,先不做上网的内网网段限制看下效果
已删除,还是无法访问外网
您好,我看您分配的DNS是172.16.0.1,172.16.0.1是DNS服务器么?
您好, 不是dns服务器,已删除还是不能访问外网。
能ping同GigabitEthernet0/0IP地址1.1.1.91,ping不通网关1.1.1.1
跳过路由器时能PING通1.1.1.1么?
你指的是电脑单机测试吗?是可以ping通的,这个ip之前我用juniper、思科的防火墙都能正常使用。
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
你指的是电脑单机测试吗?是可以ping通的,这个ip之前我用juniper、思科的防火墙都能正常使用。