This is my /etc/network/interfaces
file
I'm trying to add 2 virtual interfaces which connect to 2 different routers of 2 different ISPs
auto lo
iface lo inet loopback
iface eth2 inet static
address 192.168.0.57
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 8.8.8.8 8.8.4.4
iface eth3 inet static
address 192.168.1.57
netmask 255.255.255.0
gateway 192.168.1.1
I've tried all these commands and none of them work
sudo /etc/init.d/networking restart
sudo /etc/init.d/networking reload`
And these
sudo ifconfig eth2 down
sudo ifconfig eth2 up
I get an error :
eth2: ERROR while getting interface flags: No such device
I've tried inserting manged=false
in /etc/NetworkManager/NetworkManager.conf
and then restarting sudo service network-manger restart
When I type ifconfig -a
All I get is
eth0 Link encap:Ethernet HWaddr fc:aa:14:4d:11:22
inet addr:192.168.1.90 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::feaa:14ff:fe4d:1122/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8027656 errors:0 dropped:2 overruns:0 frame:0
TX packets:20898303 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:553970620 (553.9 MB) TX bytes:1471000436 (1.4 GB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1837917 errors:0 dropped:0 overruns:0 frame:0
TX packets:1837917 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:240925560 (240.9 MB) TX bytes:240925560 (240.9 MB)
My Question is : How can I add interfaces eth2
& eth3
?
eth0:2
andeth0:3
? – 2707974 Sep 22 '15 at 9:58