静态NAT地址转换.pptVIP

  • 2
  • 0
  • 约4.05千字
  • 约 16页
  • 2019-10-13 发布于湖北
  • 举报
静态NAT地址转换 ;;Routerenable Router#config terminal Router(config)#hostname Router0 Router0 (config)#interface fastEthernet 0/0 Router0 (config-if)#ip address 192.168..1.1 255.255.255.0 Router0 (config-if)#no shutdown Router0 (config-if)#exit Router0 (config)#interface serial 3/0 Router0 (config-if)#ip address 192.1.1.1 255.255.255.0 Router0 (config-if)#exit;Router0(config)#ip nat inside source static 192.168.1.1 192.1.1.2//配置静态地址映射关系 Router0(config)#ip nat inside source static 192.168.1.2 192.1.1.3 Router0(config)#ip nat inside source static 192.168.1.1.4 192.1.1.4 Router0(config)#ip nat inside source static 10.1.1.1 192.1.1.1 Router0(config)#interface fastEthernet 0/0 Router0(config-if)#ip nat inside //配置端口E0为内部接口 Router0(config-if)#no shutdown Router0(config-if)#exit Router0(config)#interface serial /0 Router0(config-if)#ip nat outside //配置端口S0为外部接口 Router0(config-if)#no shutdown;RouterA(config-if)#clock rate 64000 RouterA(config-if)#no shutdown RouterA(config-if)#end RouterA#ping 10.1.1.2 RouterA#show ip nat statistics Total translations: 4 (4 static, 0 dynamic, 0 extended) Outside Interfaces: Serial2/0 Inside Interfaces: FastEthernet0/0 RouterA#show ip nat translations Pro Inside global Inside local Outside local Outside global --- 192.1.1.1 10.1.1.1 --- --- --- 192.1.1.2 10.1.1.2 --- --- --- 192.1.1.3 10.1.1.3 --- --- --- 192.1.1.4 10.1.1.4 --- --- RouterA#;Switchenable Switch#config terminal Switch(config)#interface vlan 1 Switch(config-if)#ip address 192.168.1.4 255.255.255.0 Switch(config-if)#no shutdown;配置PC0-PC2 PC0 IP Address. . . . . . . . . . . . : 192.168.1.2 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.1.1 PC1 IP Address. . . . . . . . . . . . : 192.168.1.3 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Ga

文档评论(0)

1亿VIP精品文档

相关文档