Managing IP adressesΒΆ

  • Assign an IPv4 or IPv6 address to an interface:

    router{myconfig-interface}ipaddress A.B.C.D/M|X:X::X:X/M
    
    A.B.C.D

    IPv4 address

    X:X::X:X

    IPv6 address

    M

    Prefix length

    Note

    If you link several addresses to the same interface, aliasing is automatically performed.

  • Assign an IPv4 or IPv6 address pair to an interface:

    router{myconfig-interface}ipaddress LOCAL peer REMOTE
    
    LOCAL

    IPv4 or IPv6 local address

    REMOTE

    IPv4 or IPv6 remote address. It must be the same IP version as LOCAL.

    Note

    Address pairs are usually configured on tunnel interfaces. It configures the LOCAL address on the interface, and a route to the REMOTE address via the LOCAL address.

  • Delete an assigned IPv4 or IPv6 address:

    router{myconfig-interface}delete ipaddress A.B.C.D/M|X:X::X:X/M
    
  • Delete all assigned IPv4 and IPv6 addresses:

    router{myconfig-interface}delete ipaddress all
    

Examples

  • Configure and activate an IPv4 address:

    router{myconfig-eth1_0}ipaddress 10.12.37.1/24
    
  • Configure and activate an IPv6 address with a 64 bit prefix length:

    router{myconfig-eth1_0}ipaddress 3ffe:305:107:101::3/64
    
  • Configure several IPv4 and IPv6 addresses (often referred to as alias addresses) on the same interface:

    router{myconfig-eth1_0}ipaddress 10.0.0.55/24
    router{myconfig-eth1_0}ipaddress 10.16.0.56/16
    router{myconfig-eth1_0}ipaddress 3ffe:304:107:101::2/64
    router{myconfig-eth1_0}ipaddress 3ffe:304:107:120::2/64
    
  • Delete two IPv4 and IPv6 addresses:

    router{myconfig-eth1_0}delete ipaddress 10.0.0.55/24
    router{myconfig-eth1_0}delete ipaddress 3ffe:304:107:120::2/64