Configuration Guide Vol. 3


35.2.2 Configuring VRF

To operate VRF function on the Switch, you must configure VRF settings, configure VRF settings for the interfaces, and configure VRF settings for the respective functions. For VRF setting of the functions, see the configuration section of each function.

Points to note

Configure VRF settings, then configure the interfaces VRF settings.

Command examples

  1. (config)# vrf definition 2

    (config-vrf)# maximum routes 500 70

    (config-vrf)# arp-limit 50

    (config-vrf)# ipv6 maximum routes 400 70

    (config-vrf)# nd-limit 50

    (config-vrf)# exit

    Set VRF 2. Sets IPv4 max. routes to 500 and the thresholds for alert operation messages to 70%. Sets the maximum number of ARP entries to 50. Sets IPv6 max. routes to 400 and the thresholds for alert operation messages to 70%. Sets the maximum number of NDP entries to 50.

  2. (config)# interface loopback 2

    (config-if)# vrf forwarding 2

    (config-if)# ip address 192.168.0.2

    (config-if)# ipv6 address 2001:db8::2

    (config-if)# exit

    Specifies VRF for the loopback interface. Specify VRF 2 for loopback interface 2 to set IPv4 address to 192.168.0.2 and IPv6 address to 2001:db8::2.

  3. (config)# interface vlan 10

    (config-if)# vrf forwarding 2

    (config-if)# ip address 192.168.10.1 255.255.255.0

    (config-if)# ipv6 enable

    (config-if)# ipv6 address 2001:db8:10::1/64

    Specify VRF for VLAN interfaces. Set VRF 2 and IPv4 192.168.10.1 and subnet mask 255.255.255.0 in VLAN ID 10. Enables IPv6 and sets 2001:db8:10::1, prefix length 64 as IPv6.