微服务网关接口规范
872
2022-09-22
PPPOE原理和配置(建议使用pppoe方式)
PPPOE原理和配置
案例如图规划 VLAN和IP地址R1作为企业边缘设备,通过PPPoE拨号方式连接运营商内网中仅仅允许PC-1访问 Server-1br/>配置内网设备 – 终端
PC1:192.168.1.1255.255.255.0192.168.1.254PC2:192.168.1.2255.255.255.0192.168.1.2542)配置内网设备 – SW1
[SW1]interface GigabitEthernet 0/0/1[SW1-GigabitEthernet0/0/1]port link access[SW1-GigabitEthernet0/0/1]port default vlan 10[SW1-GigabitEthernet0/0/1]quit[SW1]interface GigabitEthernet 0/0/2[SW1-GigabitEthernet0/0/2]port link access [SW1-GigabitEthernet0/0/2]port default vlan 10[SW1-GigabitEthernet0/0/2]quit[SW1]interface GigabitEthernet 0/0/3[SW1-GigabitEthernet0/0/3]port link access [SW1-GigabitEthernet0/0/3]port default vlan 10 [SW1-GigabitEthernet0/0/3]quit3)配置内网设备 – R1
[R1]interface GigabitEthernet 0/0/0 [R1-GigabitEthernet0/0/0]ip address 192.168.1.254 24[R1-GigabitEthernet0/0/0]quit[R1]interface Dialer 1[R1-Dialer1]ip address ppp-negotiate [R1-Dialer1]ppp pap local-user Huawei password cipher HCIE[R1-Dialer1]dialer user Huawei[R1-Dialer1]dialer bundle 12[R1-Dialer1]quit[R1]interface GigabitEthernet 0/0/1[R1-GigabitEthernet0/0/1]pppoe-client dial-bundle-number 12[R1-GigabitEthernet0/0/1]quit[R1]ip route-static 0.0.0.0 0 Dialer 1[R1]acl 2000[R1-acl-basic-2000]rule 10 permit source 192.168.1.1 0.0.0.0[R1-acl-basic-2000]quit[R1]interface Dialer 1[R1-Dialer1]nat outbound 2000[R1-Dialer1]quit4)配置外网设备 – 终端
Server-1:200.1.1.1255.255.255.0200.1.1.2545)配置外网设备 – R2
PC>ping 200.1.1.1Ping 200.1.1.1: 32 data bytes, Press Ctrl_C to breakFrom 200.1.1.1: bytes=32 seq=1 ttl=253 time=47 msFrom 200.1.1.1: bytes=32 seq=2 ttl=253 time=31 msFrom 200.1.1.1: bytes=32 seq=3 ttl=253 time=47 msFrom 200.1.1.1: bytes=32 seq=4 ttl=253 time=31 msFrom 200.1.1.1: bytes=32 seq=5 ttl=253 time=47 ms--- 200.1.1.1 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 31/40/47 ms7)测试 PC2 与 Server-1 之间的连通性
PC2>ping 200.1.1.1Ping 200.1.1.1: 32 data bytes, Press Ctrl_C to breakRequest timeout!Request timeout!Request timeout!Request timeout!Request timeout!--- 200.1.1.1 ping statistics ---5 packet(s) transmitted0 packet(s) received100.00% packet loss
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~