首页 百科知识 静态分配外部地址

静态分配外部地址

时间:2022-09-22 百科知识 版权反馈
【摘要】:Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router#ip nat inside source static 192.168.1.15 172.16.1.10 Router#ip nat inside source static 192.168.1.16 172.16.1.11 Router#interface FastEthernet 0/0 Router#ip address 192.168.1.1 255.255.255.0 Router#ip nat inside Router#exit Router#interface FastEthernet 0/1 Router#ip address 192.168.2.1 255.255.255.0 Router#ip nat inside Router#exit Router#interface Ethernet1/0 Router#ip address 172.16.1.2 255.255.255.0 Router#ip nat outside Router#exit Router#end Router#

Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip nat inside source static 192.168.1.15 172.16.1.10
Router(config)#ip nat inside source static 192.168.1.16 172.16.1.11
Router(config)#interface FastEthernet 0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#exit
Router(config)#interface FastEthernet 0/1
Router(config-if)#ip address 192.168.2.1 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#exit
Router(config)#interface Ethernet1/0
Router(config-if)#ip address 172.16.1.2 255.255.255.0
Router(config-if)#ip nat outside
Router(config-if)#exit
Router(config)#end
Router#


免责声明:以上内容源自网络,版权归原作者所有,如有侵犯您的原创版权请告知,我们将尽快删除相关内容。

我要反馈