User`s guide
XSR User’s Guide 97
Chapter 5 Configuring NAT Examples
Configuring IP
XSR(config-if<S1/0>)#ip address 154.68.1.47 255.255.255.0
XSR(config-if<S1/0>)#ip ospf cost 64
XSR(config)#router ospf 1
XSR(config-router)#network 192.168.1.0 0.0.0.255 area 0.0.0.10
XSR(config-router)#network 154.68.1.0 0.0.0.255 area 0
XSR(config-router)#area 10 nssa default-information-originate
XSR(config-router)#network 156.57.99.3 255.255.255.0 area 1
XSR(config-router)#area 1 stub
XSR(config-router)#redistribute static
XSR#copy running-config startup-config
Configuring NAT Examples
Basic One-to-One Static NAT
The following example configures inside source address translation on the
XSR, as shown in Figure 11 below.
Figure 11 NAT Inside Source Translation
1 The user at 10.1.1.1 opens a connection to host 172.20.2.1.
Internet
Outside
Inside
NAT Table
Private: 10.1.1.1
Global: 200.2.2.1
After Translation
SA: 10.1.1.1
Reply
Request
Reply after
SA: 200.2.2.1
DA: 172.20.2.1
reverse lookup
DA: 172.20.1
SA: 172.20.2.1
DA: 10.1.1.1
SA: 172.20.2.1
DA: 200.2.2.1
External
172.20.2.1
10.1.1.1
interface
XSR
Inside Interface