Technical Documentation

Example: Configuring a Location-Based IP Address Pool

This configuration example creates two IPv4 and one IPv6 location-based IP address pools, and selects one IPv4 and one IPv6 pool each for an IP interface.

[edit]access {address-assignment {location-pool {ipv4poolX {family inet {location {1 address 10.0.0.1/24;2 address 10.0.0.2/24;3 address 172.0.0.3/24;4 address 172.0.0.4/24;5 address 192.0.0.5/24;32 address 192.0.0.32/24;}}}ipv4poolY {family inet {location {1 address 10.0.0.11/24;3 address 172.0.0.33/24;5 address 192.0.0.54/24;}}}Ipv6poolZ {family inet6 {location {1 address fec0:1:1:1::1/64;3 address fec0:1:1:1::3/64;5 address fec0:1:1:1::5/64;}}}}}}[edit]interfaces ge-0/0/0 {unit 0 {family inet {location-pool-address ipv4poolX;}family inet6 {location-pool-address ipv6poolZ;}}}

Using this configuration example, a router in slot 3 has an IPv4 address of 172.0.0.3/24 and an IPv6 address of fec0:1:1:1::3/64 assigned to gigabit Ethernet interface 0/0/0. If you move the router to slot 5, it has an IPv4 address of 192.0.0.5/24 and an IPv6 address of fec0:1:1:1::5/64 assigned to gigabit Ethernet interface 0/0/0.


Published: 2010-06-14

Help
|
My Account
|
Log Out