Quote:
Originally Posted by christyyim
If I now have both access to wired (Ethernet) and wireless networks, how I know which network I'm using currently without the help of NetworkManager (I had disabled the NetworkManager application). From where I can check it? Or which command I can used in terminal to know about it?
Thanks in advance
|
You can see how much traffic is going out a particular interface by doing:
That will display something that looks similar to this, rx/tx packets and bytes show how much information is transferring through that particular interface since the last time it was reset:
Code:
eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:xxx.xxx.xxx.xxx Bcast:xxx.xxx.xxx.xxx Mask:xxx.xxx.xxx.xxx
inet6 addr: xxxx::xxxx:xxxx:xxxx:xxxx/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6523320 errors:0 dropped:0 overruns:0 frame:0
TX packets:6837132 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1427233631 (1.3 GiB) TX bytes:1552357785 (1.4 GiB)
Interrupt:11
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:1189757 errors:0 dropped:0 overruns:0 frame:0
TX packets:1189757 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:695149212 (662.9 MiB) TX bytes:695149212 (662.9 MiB)
You can check your routing priorities by running:
Which will result in an entry like this which shows what traffic is destined for what interface/route (this is an extremely simple entry):
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
xxx.xxx.xxx.xxx 0.0.0.0 xxx.xxx.xxx.xxx U 0 0 0 eth0
0.0.0.0 xxx.xxx.xxx.xxx 0.0.0.0 UG 0 0 0 eth0
In all likely hood if both the wireless and wired interfaces are on the same network you're using one exclusively unless you've configured it to do something else.