msr 930配置如下
<H3C>sys
[H3C]dhcp enable
[H3C]dhcp server forbidden-ip 192.168.1.1
[H3C]dhcp server ip-pool 0
[H3C-dhcp-pool-0]network 192.168.1.0 255.255.255.0
[H3C-dhcp-pool-0]gateway-list 192.168.1.1
[H3C-dhcp-pool-0]dns-list 211.167.230.100 202.106.0.20
[H3C-dhcp-pool-0]expired day 0 hour 0 minute 15
[H3C-dhcp-pool-0]quit
[H3C]dhcp server forbidden-ip 192.168.2.1
[H3C]dhcp server ip-pool 1
[H3C-dhcp-pool-0]network 192.168.2.0 255.255.255.0
[H3C-dhcp-pool-0]gateway-list 192.168.2.1
[H3C-dhcp-pool-0]dns-list 211.167.230.100 202.106.0.20
[H3C-dhcp-pool-0]expired day 0 hour 0 minute 15
[H3C-dhcp-pool-0]quit
[H3C]acl number 2001
[H3C-acl-basic-2001]rule 0 permit source 192.168.1.0 0.0.0.255
[H3C-acl-basic-2001]rule 5 premit source 192.168.2.0 0.0.0.255
[H3C-acl-basic-2001]quit
[H3C]interface g0/0
[H3C-GigabitEthernet0/0]nat outbound 2001
[H3C-GigabitEthernet0/0]ip add 78.79.15.152 255.255.252.0
[H3C-GigabitEthernet0/0]quit
[H3C]ip route-static 0.0.0.0 0.0.0.0 78.79.15.151
[H3C]vlan 10
[H3C]quit
[H3C]interface GigabitEthernet 0/1
[H3C-GigabitEthernet0/1]port link-type access
[H3C-GigabitEthernet0/1]port access perit vlan 10
192.168.1.0 的网段可以上网
192.168.2.0 的网段能获取到ip 上不了网 (pc直接接 0/1口)
是配置有问题吗?
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论