Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

nattign to Dynamically assigned ip address

Status
Not open for further replies.

cormon

Technical User
Joined
Mar 4, 2005
Messages
73
Location
GB
i ams setting up a Lab with a cisco 2600 and afew hosts having off this via a switch . Heres my question

When preforming nat on the router is it posssible to specify the interface as the IP ADDRESS pool to be natted to as I dont have a static public address .Is this possible at all even.. thanks

so if i was to issue the following " ip nat pool sample-pool bri 0" and
"ip nat inside source list 5 pool sample-pool" would this work Thanks very much


Router>en
Router#sh run
Building configuration...

Current configuration : 905 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
!
memory-size iomem 15
ip subnet-zero
!
!
ip name-server 159.134.237.6
ip name-server 159.134.248.17
!
isdn switch-type basic-net3
!
!
!
interface Ethernet0/0
ip address 192.168.1.254 255.255.255.0
ip nat inside
half-duplex
!
interface TokenRing0/0
no ip address
shutdown
ring-speed 16
!
interface BRI0/0
ip address negotiated
ip nat outside
encapsulation ppp
dialer idle-timeout 300
dialer fast-idle 40
dialer string 91892150150
dialer load-threshold 2 outbound
dialer-group 1
isdn switch-type basic-net3
!
ip classless
ip route 0.0.0.0 0.0.0.0 BRI0/0
ip http server
!
access-list 5 permit 192.168.1.0 0.0.0.255
access-list 101 permit tcp any any
access-list 101 permit udp any any
dialer-list 1 protocol ip list 101
!
line con 0
line aux 0
line vty 0 4
!
end

Router#
 
Hello,

I think the syntax you have in mind does not exist. But overloading (PAT) would accomplish the exact same thing, since your pool, existing of whatever address is assigned to your interface, would consist of one address only anyway.
So I would configure the following:

ip nat inside source list 5 interface bri0 overload

HTH,

GP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top