# route
Kernel IP routing table
Destination
Gateway
Genmask
Flags Metric Ref Use Iface
192.168.42.0
*
255.255.255.0 U
0
0 0 usb0
# route add default gw 192.168.42.2
# route
Kernel IP routing table
Destination
Gateway
Genmask
Flags Metric Ref Use Iface
default
192.168.42.2
0.0.0.0
UG 0
0 0 usb0
192.168.42.0
*
255.255.255.0 U
0
0 0 usb0
# ls -l /etc/resolv.conf
lrwxrwxrwx 1 root root 18 May 15 2024
/etc/resolv.conf -> ../tmp/resolv.conf
# echo "nameserver 8.8.8.8" >> /etc/resolv.conf
# cat /etc/resolv.conf
nameserver 8.8.8.8
|