Skip to content

Instantly share code, notes, and snippets.

RTE#
interface fa0/1
ip address 213.25.15.130 255.255.255.192
interface fa0/0
ip address 213.25.15.2 255.255.255.192
router rip
network 213.25.15.0
RTA#
interface fa0/0
ip address 213.25.15.68 255.255.255.192
router ospf 101
redistribute rip metric 10 subnets
network 213.25.15.0 0.0.0.255 area 0
router rip
redistribute ospf 101 metric 1
#R1
interface fa0/1
ip address 10.20.10.1 255.255.255.0
router bgp 400
neighbor 10.20.10.2 remote-as 400
#R2
interface fa0/0
ip address 10.20.10.2 255.255.255.0
#R1
interface fa0/1
ip address 10.20.10.1 255.255.255.0
router bgp 300
neighbor 10.20.10.2 remote-as 400
#R2
interface fa0/0
Router(config)#interface fa0/0
Router(config-if)#ip nat inside
Router(config)#interface fa0/1
Router(config-if)#ip nat outside
Router(config)#ip nat inside source static 172.18.0.5 100.18.0.5
Router#sh ip nat translations
Pro Inside global Inside local Outside local Outside global
-- 100.18.0.5 172.18.0.5 --- ---
Router(config)#interface fa0/0
Router(config-if)#ip nat inside
Router(config)#interface fa0/1
Router(config-if)#ip nat outside
Router(config)#ip nat pool dynamic-ip 100.0.16.1 100.0.16.6 prefix-length 29
Router(config)#ip access-list standard client-list
Router(config-std-nacl)#permit 172.18.0.0 0.0.0.15
Router(config)#ip nat inside source list client-list pool dynamic-ip
Router#sh ip nat translations
Pro Inside global Inside local Outside local Outside global
icmp 100.16.1:2 172.18.0.1:2 100.1.0.100:2 100.1.0.100:2
tcp 100.16.2:35694 172.18.0.2:35694 100.1.0.100:80 100.1.0.100:80
tcp 100.16.1:56185 172.18.0.1:56185 100.1.0.100:80 100.1.0.100:80
--- 100.16.1 172.18.0.1 --- ---
--- 100.16.2 172.18.0.2 --- ---
Router(config)#interface fa0/0
Router(config-if)#ip nat inside
Router(config)#interface fa0/1
Router(config-if)#ip nat outside
Router(config)#ip nat inside source static tcp 172.17.0.5 80 88.88.88.88 80
Router(config)#ip nat inside source static tcp 172.17.0.6 22 88.88.88.88 666
Router#sh ip nat translations
Router(config)#interface fa0/0
Router(config-if)#ip nat inside
Router(config)#interface fa0/1
Router(config-if)#ip nat outside
Router(config)#ip access-list standard client-list
Router(config-std-nacl)#permit 172.18.0.0 0.0.0.255
Router(config)#ip nat inside source list client-list interface fastethernet0/1 overload
Router#show ip nat translations
Pro Inside global Inside local Outside local Outside global
tcp 88.88.88.88:7921 172.18.0.2:7921 95.100.96.233:443 95.100.96.233:443
tcp 88.88.88.88:8651 172.18.0.5:8651 173.194.44.18:80 173.194.44.18:80
tcp 88.88.88.88:8652 172.18.0.111:8652 173.194.44.18:443 173.194.44.18:443
tcp 88.88.88.88:8653 172.18.0.223:8653 173.194.70.84:443 173.194.70.84:443
udp 88.88.88.88:64116 172.18.0.222:64116 8.8.8.8:53 8.8.8.8:53
udp 88.88.88.88:64756 172.18.0.223:64756 8.8.4.4:53 8.8.4.4:53