一.NAT(网络地址转换)
1.分为三部分静态转换,动态转换,端口多部服用
2.静态NAT转换:ip nat inside source static 10.0.0.2 192.1.1.2 //内部地址转换为外部地址
interface Ethernet0 //进入Ethernet0端口
ip address 10.1.1.1 255.255.255.0 //配置ip地址
ip nat inside //内部
interface S0 //进入S0端口
ip address 192.1.1.1 255.255.255.0
ip nat outside //外部
3.动态NAT:access-list 1 permite 10.1.1.0 0.0.0.255
ip nat pool poolA 192.1.1.2 192.1.1.10 netmask 255.255.255.0 //定义地址池
IP nat inside source list 1 pool poolA
interface Ethernet0 //进入Ethernet0端口
ip address 10.1.1.1 255.255.255.0 //配置ip地址
ip nat inside //内部
interface S0 //进入S0端口
ip address 192.1.1.1 255.255.255.0
ip nat outside //外部
4.access-list 1 permit 10.1.1.0 0.0.0.255
ip nat pool PoolA 192.1.1.1 192.1.1.2 netmask 255.255.255.0
ip nat inside source list 1 pool poolA overload
interface Ethernet0 //进入Ethernet0端口
ip address 10.1.1.1 255.255.255.0 //配置ip地址
ip nat inside //内部
interface S0 //进入S0端口
ip address 192.1.1.1 255.255.255.0
ip nat outside //外部
网络工程师NAT
最新推荐文章于 2022-05-30 17:53:12 发布