Home > other >  Ubuntu under double card, how to choose a second network card online?
Ubuntu under double card, how to choose a second network card online?

Time:10-01

Which brother can help to check,
Ubuntu under double card, how to choose a second network card online? The first site to leave network, the second walk outside network,

Configuration is as follows:

Root @ ubuntu:/etc# ifconfig
Eno1 Link encap: Ethernet HWaddr scepter 9: c6:3 f: b4:6 e
Inet addr: 10.92.35.225 Bcast: 10.92.35.255 Mask: 255.255.255.0
Inet6 addr: fe80: : f12b: 321 c: 9 a85: bc65/64 Scope: Link
The UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric: 1
RX packets: 266904448 errors: 0 dropped: 0 overruns: frame 0:0
TX packets: 249582652 errors: 0 dropped: 0 overruns: carrier 0:0
Collisions: 0 txqueuelen: 1000
RX bytes: 324687451815 (324.6 GB) TX bytes: 215951829090 (215.9 GB)
Interrupt: 20 Memory: f7c00000 - f7c20000

Enp0s20u1 Link encap: Ethernet HWaddr 9 b: 26:03:3 c: 67: e3
Inet addr: 192.168.42.11 Bcast: 192.168.42.255 Mask: 255.255.255.0
7 eca inet6 addr: fe80: : : 1 daa: da3:398 a/64 Scope: Link
The UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric: 1
RX packets: 2402 errors: 0 dropped: 0 overruns: frame 0:0
TX packets: 3215 errors: 0 dropped: 0 overruns: carrier 0:0
Collisions: 0 txqueuelen: 1000
RX bytes: 233239 (233.2 KB) TX bytes: 463146 (463.1 KB)

Lo Link encap: Local Loopback
Inet addr: 127.0.0.1 Mask: 255.0.0.0
Inet6 addr: : : 1/128 Scope: Host
The UP LOOPBACK RUNNING MTU: 65536 Metric: 1
RX packets: 69465629 errors: 0 dropped: 0 overruns: frame 0:0
TX packets: 69465629 errors: 0 dropped: 0 overruns: carrier 0:0
Collisions: 0 txqueuelen: 1
RX bytes: 15830765569 (15.8 GB) TX bytes: 15830765569 (15.8 GB)

Root @ ubuntu:/etc# route - n
The Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.92.35.1 0.0.0.0 UG 100 0 0 eno1
0.0.0.0 192.168.42.129 0.0.0.0 UG 101 0 0 enp0s20u1
10.92.32.6 10.92.35.1 255.255.255.255 '100 0 0 eno1
10.92.35.0 0.0.0.0 255.255.255.0 U 100 0 0 eno1
192.168.42.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s20u1
192.168.42.0 0.0.0.0 255.255.255.0 U 100 0 0 enp0s20u1


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Root @ ubuntu:/etc# vi/etc/network/interfaces
# interfaces (5) the file informs by ifup (8) and ifdown (8)

Auto eth0
Iface eth0 inet static
Address 10.92.35.225
Netmask 255.255.255.0

Iface eth1 inet static
Address 192.168.42.11
Netmask 255.255.255.0
Gateway 192.168.42.129
Auto eth1



Root @ ubuntu:/etc#/etc/init. D/networking restart
[...]. Restarting networking (via systemctl) : networking serviceJob for networking. The service failed because the control process exited with the error code. See "systemctl status. Networking service" and "journalctl - xe" for details.
failed !
The above, the start has been failed failed

Where does vi/etc/network/interfaces configuration errors?

  • Related