Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, 1. for multiple intefaces in a VRF and regarding to performance v.s. resource usage, do i have to create a bridge per interface , or a single bridge for ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2013
    Posts
    8

    Vrf


    Hi,
    1. for multiple intefaces in a VRF and regarding to performance v.s. resource usage, do i have to create a bridge per interface , or a single bridge for all interfaces in the VRF?
    2. is it possible to connect the VRF without any bridge ?
    Thanks. Avi

  2. #2
    Just Joined!
    Join Date
    Nov 2013
    Posts
    16
    Hello,

    1.
    I guess you mean network namespace??.

    example:

    You can add a network namespace by issuing:
    ip netns add myvrf

    (confirm by
    ip netns list


    add virtual interfaces to the namespace:
    ip link add veth0 type veth peer name veth1
    ifconfig veth0 0.0.0.0 up
    ip link set veth1 netns myvrf

    Add the virtual interface to a bridge:
    brctl addbr br0
    brctl addif br0 eth0 veth0

    add ip and route for the namespace virtual interface:
    ip netns exec myvrf ifconfig veth1 10.255.255.10 netmask 255.255.255.0 up
    ip netns exec myvrf route add default gw 10.255.255.1

    e.g: run a rounting daemon in the namespace:
    ip netns exec myvrf /sbin/myvrf_quagga.sh



    2. for network namespaces, no, bridge is required if you want to connect to the physical world.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •