Steps to Check Netwok Interface Card (NIC) Configurations

Steps to Check Netwok Interface Card (NIC) Configurations

2018-06-13. Category & Tags: Default Network, NIC

UBUNTU 20.04 #

New command: ip & ss.
ubuntu.com

check & setup nic in cli #

check hardware info (canNOT guarantee it is up?):

ethtool -i wlp4s0

config ip & gateway:

ip link set dev wlp4s0 up
dhclient wlp4s0
ip route add 192.168.50.1 dev wlp4s0
ip route add default via 192.168.50.1

UBUNTU 18.04 dated #

Check the physical NIC is connected.

lspci

Note: The NIC will be shown regardless if drivers are installed, this is a PCI feature. Ref.

Then check if it is recognized as network interfaces:

ifconfig -a

Check if it is up:

ifconfig
```