我配置端口G0/0为WAN口,IP地址192.168.1.199/24,G0/1为内网端口,地址为192.168.3.1/24,开启DHCP,地址池192.168.3.2-254/24
电脑接在G0/1口后,获取了IP :192.168.3.2/24,
下面是配置文件
#
version 7.1.042, Release 0007P02
#
sysname H3C
#
telnet server enable
#
dhcp enable
dhcp server always-broadcast
#
system-working-mode
password-recovery enable
#
vlan 1
#
dhcp server ip-pool vlan1
network 192.168.2.0 mask 255.255.255.0
forbidden-ip 192.168.2.1
forbidden-ip 192.168.2.254
gateway-list 192.168.2.1
#
dhcp server ip-pool www
network 192.168.3.0 mask 255.255.255.0
address range 192.168.3.2 192.168.3.254
expired day 10
gateway-list 192.168.3.1
#
controller Cellular0/0
#
controller Cellular0/1
#
interface Aux0
#
interface NULL0
#
interface Vlan-interface1
#
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 192.168.1.199 255.255.255.0
nat outbound 2000
#
interface GigabitEthernet0/1
port link-mode route
ip address 192.168.3.1 255.255.255.0
dhcp server apply ip-pool www
#
interface GigabitEthernet0/2
port link-mode route
#
scheduler logfile size 16
#
line class aux
user-role network-admin
#
line class tty
user-role network-operator
#
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 192.168.1.1
#
acl number 2000
rule 1000 permit source 0.0.0.0 255.255.255.0
#
domain system
#
aaa session-limit ftp 16
aaa session-limit telnet 16
aaa session-limit http 16
aaa session-limit ssh 16
aaa session-limit https 16
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
password hash $h$6$TBC/kwP6u5AUmzHz$Lw8GqQiBy7Ws9s9qfNJhB5WjmVuT/4xeMfix8vWsGLqHjT8Xb/MW4UZrfAkiFps5VLW1umewwMgdv2mv06jYYw==
service-type http https
authorization-attribute user-role network-operator
authorization-attribute user-role 15
authorization-attribute user-role network-admin
#
nat address-group 1
address 192.168.3.2 192.168.3.254
#
return
最佳答案
192.168.1.1在哪?
(0)
接口是up的么,能看到相应的arp信息么
192.168.1.1就是路由器r1的lan口地址
接口是up的么,能看到相应的arp信息么
您好,请知:
从反馈的信息来看,有ACL的配置。
可以先把ACL给去掉,然后看看能不能通,如果可以,那就是ACL的问题,具体检查ACL的配置是否满足需求了,根据需要修改ACL的配置。
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
搞定了,感谢