I am using arch linux,
I have multiple internet connections:
one is wifi and other 3G usb modem
First my wifi started and then 3G internet started. The networkmanager shows both are UP. But wifi internet is being used. Now in between i want to use 3G modem for some purpose.
Question1: How to switch to 3G internet using some command line command.
the following are the connections information from the network manager.
3G connection
IP address: 10.178.202.42
Broadcast Address: 10.179.255.255
Subnet Mask: 255.252.0.0
Primary DNS: 8.8.8.8
WIFI Connection:
IP address: 192.168.4.160
Broadcast Address: 192.168.7.255
Subnet Mask: 255.255.248.0
Primary DNS: 192.168.0.1
I know that wifi is being used because i read that the first connection will be default. Question2: But how to check which is default using some command,
Also the output of the command:
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 wwan0
10.176.0.0 0.0.0.0 255.252.0.0 U 7 0 0 wwan0
192.168.0.0 0.0.0.0 255.255.248.0 U 9 0 0 wlan0
Question3: I cant understand what this output means. What is the difference beyween gateway and DNS
Also ip output:
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether 00:1d:ba:07:87:98 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:21:5d:e8:77:3a brd ff:ff:ff:ff:ff:ff
inet 192.168.4.160/21 brd 192.168.7.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::221:5dff:fee8:773a/64 scope link
valid_lft forever preferred_lft forever
4: wwan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 02:15:75:3d:29:27 brd ff:ff:ff:ff:ff:ff
inet 10.178.202.42/14 brd 10.179.255.255 scope global wwan0
valid_lft forever preferred_lft forever
inet6 fe80::15:75ff:fe3d:2927/64 scope link
valid_lft forever preferred_lft forever
I the above output what is the inet: it shows a "/" eg in wwan0: 10.178.202.42/14. Question4: what does that 42/14 means.