Dew in the BT5 virtual machine after using ifconfig found only Lo network card, the other network cards are not displayed.
As follows:
root@bt:~# ifconfig 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:16436 metric:1
RX packets:54 errors:0 dropped:0 overruns:0 frame:0
TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12741 (12.7 kb) TX bytes:12741 (12.7 kb)
Then use the ifconfig-a command to see how many network adapters. I see the eth3.
root@bt:~# ifconfig-a
Eth3 Link encap:ethernet hwaddr 00:0c:29:ac:3c:2a
Broadcast Multicast mtu:1500 metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:19 Base address:0x2000
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:16436 metric:1
RX packets:66 errors:0 dropped:0 overruns:0 frame:0
TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:16565 (16.5 kb) TX bytes:16565 (16.5 kb)
Then set the IP and subnet masks directly to Eth3.
root@bt:~# ifconfig eth3 10.10.10.128 netmask 255.255.255.0
Set success, and then look at the network card: root@bt:~# ifconfig-a
Eth3 Link encap:ethernet hwaddr 00:0c:29:ac:3c:2a//have, haha.
inet addr:10.10.10.128 bcast:10.10.10.255 mask:255.255.255.0
Inet6 ADDR:FE80::20C:29FF:FEAC:3C2A/64 Scope:link
Up broadcast RUNNING multicast mtu:1500 metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:238 (238.0 B)
Interrupt:19 Base address:0x2000
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:16436 metric:1
RX packets:85 errors:0 dropped:0 overruns:0 frame:0
TX packets:85 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:22421 (22.4 KB) TX bytes:22421 (22.4 KB)
Ping .....
root@bt:~# Ping 10.10.10.130
PING 10.10.10.130 (10.10.10.130) bytes of data.
Bytes from 10.10.10.130:icmp_seq=1 ttl=128 time=0.583 ms
Bytes from 10.10.10.130:icmp_seq=2 ttl=128 time=0.278 ms
Bytes from 10.10.10.130:icmp_seq=3 ttl=128 time=0.662 ms
^c
---10.10.10.130 ping statistics---
3 Packets transmitted, 3 received, 0% packet loss, time 1999ms
RTT Min/avg/max/mdev = 0.278/0.507/0.662/0.167 ms
root@bt:~#
Solve the problem.