Difference between revisions of "Network card"

From Linuxintro
imported>ThorstenStaerk
(Created page with "= Find out your network card's type = # hwinfo --netcard --short network: eth4 Broadcom NetXtreme II ...")
 
imported>ThorstenStaerk
Line 76: Line 76:
  
 
= See also =
 
= See also =
 +
* [[network]]
 
* [[hardware]]
 
* [[hardware]]

Revision as of 09:53, 5 April 2012

Find out your network card's type

# 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

Find out your network card's state

# 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

Find out your network card's IP address

# 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

See also