How do I make above VLAN configuration permanent on a Debian or Ubuntu based system?
Edit the /etc/network/interfaces file, enter:
Update configuration as follows:
$ nano /etc/network/interfaces
Update configuration as follows:
## vlan for eth0 with ID - 303 on a Debian/Ubuntu Linux## auto eth0.303 iface eth0.303 inet static address 10.0.12.1 netmask 255.255.255.0 network 10.0.12.0 broadcast 10.0.12.255 gateway 10.0.12.2 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 10.0.12.2
vlan-raw-device eth0
How do I make above VLAN configuration permanent on a Debian or Ubuntu based system?
Edit the /etc/network/interfaces file, enter:$ sudo vi /etc/network/interfaces
Update configuration as follows:## vlan for eth0 with ID - 5 on a Debian/Ubuntu Linux## auto eth0.5 iface eth0.5 inet static address 192.168.1.200 netmask 255.255.255.0 vlan-raw-device eth0
Save and close the file.
0 komentar:
Posting Komentar