Difference between revisions of "Network card"
From Linuxintro
imported>ThorstenStaerk |
m |
||
Line 1: | Line 1: | ||
= What network card do I have? = | = What network card do I have? = | ||
I recommend to use [[hwinfo]] to find out what network card you have: | I recommend to use [[hwinfo]] to find out what network card you have: | ||
− | |||
# hwinfo --netcard --short | # hwinfo --netcard --short | ||
network: | network: | ||
Line 10: | Line 9: | ||
eth3 Intel 10-Gigabit XF SR Server Adapter | eth3 Intel 10-Gigabit XF SR Server Adapter | ||
eth5 Intel PRO/1000 PT Server Adapter | eth5 Intel PRO/1000 PT Server Adapter | ||
− | |||
= Is a cable plugged in? = | = Is a cable plugged in? = | ||
Is a cable plugged in? Look at the line "link detected": | Is a cable plugged in? Look at the line "link detected": | ||
− | |||
# ethtool eth0 | # ethtool eth0 | ||
Settings for eth0: | Settings for eth0: | ||
Line 34: | Line 31: | ||
Supports Wake-on: g | Supports Wake-on: g | ||
Wake-on: d | Wake-on: d | ||
− | Link detected: yes | + | Link detected: '''''yes''''' |
− | |||
= Find out your network card's firmware and driver = | = Find out your network card's firmware and driver = | ||
− | |||
# ethtool -i eth0 | # ethtool -i eth0 | ||
driver: bnx2 | driver: bnx2 | ||
Line 44: | Line 39: | ||
firmware-version: bc 3.5.12 UMP 1.1.8 | firmware-version: bc 3.5.12 UMP 1.1.8 | ||
bus-info: 0000:05:00.0 | bus-info: 0000:05:00.0 | ||
− | |||
= What are my IP addresses? = | = What are my IP addresses? = | ||
− | < | + | <pre> |
# ip a s | # ip a s | ||
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN | 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN | ||
Line 81: | Line 75: | ||
inet6 fe80::fc54:ff:fe01:d540/64 scope link | inet6 fe80::fc54:ff:fe01:d540/64 scope link | ||
valid_lft forever preferred_lft forever | valid_lft forever preferred_lft forever | ||
− | </ | + | </pre> |
= Set your network card's name = | = Set your network card's name = |
Latest revision as of 20:06, 25 March 2021
Contents
What network card do I have?
I recommend to use hwinfo to find out what network card you have:
# hwinfo --netcard --short network: eth4 Broadcom NetXtreme II BCM5708 Gigabit Ethernet eth2 Broadcom NetXtreme II BCM5708 Gigabit Ethernet eth1 Broadcom NetXtreme II BCM5708 Gigabit Ethernet eth0 Broadcom NetXtreme II BCM5708 Gigabit Ethernet eth3 Intel 10-Gigabit XF SR Server Adapter eth5 Intel PRO/1000 PT Server Adapter
Is a cable plugged in?
Is a cable plugged in? Look at the line "link detected":
# ethtool eth0 Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on Supports Wake-on: g Wake-on: d Link detected: yes
Find out your network card's firmware and driver
# ethtool -i eth0 driver: bnx2 version: 2.0.4 firmware-version: bc 3.5.12 UMP 1.1.8 bus-info: 0000:05:00.0
What are my IP addresses?
# ip a s 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 brd 127.255.255.255 scope host lo inet 127.0.0.2/8 brd 127.255.255.255 scope host secondary lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth5: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000 link/ether 00:15:17:0b:1b:49 brd ff:ff:ff:ff:ff:ff 3: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000 link/ether 00:1b:21:09:20:b1 brd ff:ff:ff:ff:ff:ff 4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000 link/ether 00:1e:4f:15:46:b1 brd ff:ff:ff:ff:ff:ff inet6 fe80::21e:4fff:fe15:46b1/64 scope link valid_lft forever preferred_lft forever 5: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN qlen 1000 link/ether 00:1e:4f:15:46:b3 brd ff:ff:ff:ff:ff:ff 6: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN qlen 1000 link/ether 00:1e:4f:15:46:b5 brd ff:ff:ff:ff:ff:ff 7: eth4: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN qlen 1000 link/ether 00:1e:4f:15:46:b7 brd ff:ff:ff:ff:ff:ff 8: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN link/ether 00:1e:4f:15:46:b1 brd ff:ff:ff:ff:ff:ff inet 10.20.90.3/22 brd 10.20.91.255 scope global br0 inet6 fe80::21e:4fff:fe15:46b1/64 scope link valid_lft forever preferred_lft forever 9: virbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN link/ether 7e:95:5b:62:ef:61 brd ff:ff:ff:ff:ff:ff inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0 12: vnet1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 500 link/ether fe:54:00:01:d5:40 brd ff:ff:ff:ff:ff:ff inet6 fe80::fc54:ff:fe01:d540/64 scope link valid_lft forever preferred_lft forever
Set your network card's name
See uDev.