msr800-10如何通过命令配置自动获取ip上网
msr800-10如何通过命令配置自动获取ip上网
(0)
最佳答案
您好,请知:
如果是WAN通过DHCP自动获取IP地址,且作为出口设备使用,以下是部署要点,请参考:
1、配置外网口IP为DHCP获取和NAT地址转换,以下是参考命令:
int gi 1/0/1
ip address DHCP
nat outbound
quit
2、配置默认路由指向到外网,以下是参考命令:
ip route-static 0.0.0.0 0.0.0.0 gi 1/0/1
如果是通过PPPOE拨号获取到IP地址并上网,以下是配置参考命令:
<H3C>system-view
[H3C] dialer-group 1 rule ip permit
[H3C] interface dialer 1
[H3C-Dialer1] dialer bundle enable
[H3C-Dialer1] dialer-group 1
[H3C-Dialer1] ip address ppp-negotiate
[H3C-Dialer1] dialer timer idle 0
[H3C-Dialer1] ppp chap user abc
[H3C-Dialer1] ppp chap password simple 123456
[H3C-Dialer1] ppp pap local-user abc password simple 123456
[H3C-Dialer1] ppp ipcp dns admit-any
[H3C-Dialer1] ppp ipcp dns request
[H3C-Dialer1] nat outbound
[H3C-Dialer1] quit
#将拨号口绑定实际的物理接口
[H3C]interface GigabitEthernet 0/0
[H3C-GigabitEthernet0/0] pppoe-client dial-bundle-number 1
(0)
#配置拨号口,拨号的用户名为abc,密码为123456
<H3C>system-view
[H3C] dialer-group 1 rule ip permit
[H3C] interface dialer 1
[H3C-Dialer1] dialer bundle enable
[H3C-Dialer1] dialer-group 1
[H3C-Dialer1] ip address ppp-negotiate
[H3C-Dialer1] dialer timer idle 0
[H3C-Dialer1] ppp chap user abc
[H3C-Dialer1] ppp chap password simple 123456
[H3C-Dialer1] ppp pap local-user abc password simple 123456
[H3C-Dialer1] ppp ipcp dns admit-any
[H3C-Dialer1] ppp ipcp dns request
[H3C-Dialer1] quit
#将拨号口绑定实际的物理接口
[H3C]interface GigabitEthernet 0/0
[H3C-GigabitEthernet0/0] pppoe-client dial-bundle-number 1
(1)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论