Dummy interfaces

From VyOS Wiki
Jump to: navigation, search

Dummy interface — much like the loopback, except you can have as many as you want.

Dummy interfaces can be used as interfaces that always stay up (in the same fashion to loopbacks in IOS), or for testing purposes.

Configuration commands:

interfaces
    dummy <dum[0-999]>
        address <ipv4>
        address <ipv6>
        description <txt>
        disable
        ip
            <usual IP options>
        ipv6
            <usual IPv6 options>

Example:

vyos@router# set interfaces dummy dum0 address 192.0.2.10/32
[...]
vyos@router# show interfaces dummy
 dummy dum0 {
     address 192.0.2.10/32
 }
[edit]

vyos@router# set protocols bgp 64512 neighbor 203.0.113.1 update-source dum0