hostname R2
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 172.16.200.1 255.255.255.0
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 192.168.1.2 0.0.0.0 area 0
hostname R1
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
ip nat outside
!
interface FastEthernet0/1
ip address 172.16.100.1 255.255.255.0
ip nat inside
!
router ospf 1
log-adjacency-changes
redistribute static subnets
network 192.168.1.1 0.0.0.0 area 0
!
ip route 172.16.200.2 255.255.255.255 Null0
R2#sh ip route
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.200.0/24 is directly connected, FastEthernet0/1
O E2 172.16.200.2/32 [110/20] via 192.168.1.1, 00:07:26, FastEthernet0/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
R2#
ip nat pool POOL 172.16.100.2 172.16.100.2 prefix-length 24 type rotary
ip nat inside destination list SERVER pool POOL
!
ip access-list extended SERVER
permit tcp any host 172.16.200.2 range 5000 5100
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (0)