debian/tests/functions.d/add-to.interfaces
raw| 1 | |
| 2 | auto dummy0 |
| 3 | iface dummy0 inet static |
| 4 | pre-up ip link add dummy0 type dummy |
| 5 | address 192.168.141.1 |
| 6 | netmask 255.255.255.248 |
| 7 | post-down ip link del dummy0 |
| 8 | |
| 9 | auto veth0 |
| 10 | iface veth0 inet static |
| 11 | pre-up ip netns add clientnet |
| 12 | pre-up ip link add veth0 type veth peer veth1 netns clientnet |
| 13 | address 192.168.142.1 |
| 14 | netmask 255.255.255.248 |
| 15 | post-down ip link del veth0 |
| 16 | post-down ip netns del clientnet |
| 17 | |
| 18 | iface veth1 inet dhcp |