[Xorp-users] Virtual interfaces in GNU/Linux

Pavlin Radoslavov pavlin at icir.org
Sun Dec 17 08:50:21 PST 2006


> I am trying with Xorp for my multicast thesis and looks terrific :) my tests 
> were using (just one) Debian Etch box and Qemu so I had a virtual network just 
> like the image attached; but now I have to show my tests in a real network.
> 
> For my real-test I will use normal computers and some others as routers with 
> Xorp, but I have just one NIC in each PC, so, How do I can use virtual 
> interfaces just like in a normal GNU/Linux.
> 
> 	ifconfig ethN:X <address>
> 	(ifconfig eth0:1 192.168.1.1)

First, you need to configure manually the virtual interfaces; i.e.,
in advance before starting XORP (in the future XORP should have
support for configuring virtual interfaces).

Then, inside the XORP configuration you use the virtual interfaces
as any other (physical) interface. For example, if the interface
names shown by "ifconfig -a" are eth0:1 and eth0:2, then your
configuration might look like the one below.
Though, double-check that eth0:1 and eth0:2 are indeed configured
with IP addresses, they are multicast capable (the MULTICAST flag is
set), and are UP.

Please let us know if this setup is not working properly.

Regards,
Pavlin

================================================================

interfaces {
    interface eth0:1 {
        default-system-config
    }
    interface eth0:2 {
        default-system-config
    }
}

plumbing {
    mfea4 {
        interface eth0:1 {
            vif eth0:1 {
                disable: false
            }
        }
        interface eth0:2 {
            vif eth0:2 {
                disable: false
            }
        }
        interface register_vif {
            vif register_vif {
                disable: false
            }
        }
    }
}

protocols {
    igmp {
        interface eth0:1 {
            vif eth0:1 {
                disable: false
            }
        }
        interface eth0:2 {
            vif eth0:2 {
                disable: false
            }
        }
    }

    pimsm4 {
        interface eth0:1 {
            vif eth0:1 {
                disable: false
            }
        }
        interface eth0:2 {
            vif eth0:2 {
                disable: false
            }
        }
        interface register_vif {
            vif register_vif {
                disable: false
            }
        }

	static-rps {
	    rp 10.0.0.1 {
		group-prefix 224.0.0.0/4 {
		}
	    }
	}
    }

    fib2mrib {
        disable: false
    }
}

================================================================



More information about the Xorp-users mailing list