路由器0口接光猫,配置192.168.1.26地址,可正常访问互联网,LAN口创建192.168.3.0/24网段地址池,配置VLANIF1网关192.168.3.1,配置出接口NAT功能,所有配置完成后,终端能获取192.168.3.0网段地址,但无法访问互联网。配置如下:
<H3C>display current-configuration
#
version 5.20, Release 2514P14
#
sysname H3C
#
nat address-group 0 192.168.3.1 192.168.3.254
#
domain default enable system
#
dns proxy enable
#
telnet server enable
#
dar p2p signature-file flash:/p2p_default.mtd
#
port-security enable
#
password-recovery enable
#
vlan 1
#
vlan 2
#
vlan 5
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
dhcp server ip-pool lan
network 192.168.2.0 mask 255.255.255.0
gateway-list 192.168.2.1
dns-list 114.114.114.114
#
dhcp server ip-pool vlan1 extended
network ip range 192.168.3.2 192.168.3.254
network mask 255.255.255.0
gateway-list 192.168.3.1
dns-list 192.168.3.1
#
user-group system
group-attribute allow-guest
#
local-user admin
password cipher $c$3$nMSvw9C07nhHW5kpqiDCcfWHC8NC1V/X
authorization-attribute level 3
service-type telnet
service-type web
#
cwmp
undo cwmp enable
#
interface Aux0
async mode flow
link-protocol ppp
#
interface Cellular0/0
async mode protocol
link-protocol ppp
#
interface NULL0
#
interface Vlan-interface1
ip address 192.168.3.1 255.255.255.0
dhcp server apply ip-pool vlan1
#
interface Vlan-interface2
ip address 192.168.100.1 255.255.255.0
#
interface GigabitEthernet0/0
port link-mode route
nat outbound address-group 0
ip address 192.168.1.26 255.255.255.0
dns server 192.168.1.1
#
interface GigabitEthernet0/1
port link-mode route
#
interface GigabitEthernet0/2
port link-mode bridge
#
interface GigabitEthernet0/3
port link-mode bridge
port access vlan 2
#
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
#
ip route-static 0.0.0.0 0.0.0.0 GigabitEthernet0/0 192.168.1.1
#
dhcp enable
#
nms primary monitor-interface GigabitEthernet0/0
#
load xml-configuration
#
load tr069-configuration
#
user-interface tty 12
user-interface aux 0
user-interface vty 0 4
protocol inbound telnet
#
return
<H3C>
光猫使用拨号上网,接到路由器0口,终端接路由器LAN口
(0)
需要看,路由器ping外网网关是否通,终端ping网关是否能通,终端ping外网口是否能通,终端ping外网网关是否可以通
(0)
wan口能通外网,终端能通网关,不能通外网
终端ping 路由器0口能通吗。
配置有问题,nat转换不应该是nat你的地址池,这样修改一下
写一条acl
acl 3000
rule 0 permit ip source 192.168.3.0 0.0.0.255
完了在出接口nat这条acl
interface GigabitEthernet0/0
port link-mode route
nat outbound 3000
ip address 192.168.1.26 255.255.255.0
另外在系统视图下直接加一条dns
[h3c]dns server 114.114.114.114
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
终端ping 路由器0口能通吗。