ISP 配置:
ISP#conf t
ISP(config)#int f0/0
ISP(config-if)#ip add 100.1.1.1 255.255.255.0
ISP(config-if)#no shut
ISP(config-if)#exit
ISP(config)#
ISP(config)#int f1/0
ISP(config-if)#ip add 200.1.1.1 255.255.255.0
ISP(config-if)#no shut
*Mar 1 00:25:13.415: %LINK-3-UPDOWN: Interface FastEthernet1/0, changed state to up
*Mar 1 00:25:14.415: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up
ISP(config-if)#exit
ISP(config)#int l 0
ISP(config-if)#
*Mar 1 00:25:27.783: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up
ISP(config-if)#ip add 1.1.1.1 255.255.255.0
ISP(config-if)#no shut
ISP(config-if)#
ISP(config-if)#do show ip int b
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 100.1.1.1 YES manual up up
FastEthernet1/0 200.1.1.1 YES manual up up
Loopback0 1.1.1.1 YES manual up up
ISP(config-if)#
ISP(config-if)#
ISP(config-if)#exit
PC1配置:
PC1(config)#int f0/0
PC1(config-if)#ip add 192.168.1.2 255.255.255.0
PC1(config-if)#no shut
*Mar 1 00:36:15.003: %LINK-3-UPDOWN: Interface FastEthernet0
《用GNS3 路由器 模拟 PC 实现访问外网》
最新推荐文章于 2022-10-04 10:02:34 发布