Robert Harker Technical Wiki
Thoughts and Ideas About Large Sites

[ Prev ] [ Index ] [ Next ]


Linux networking

ethtool

ethtool eth0
Settings for eth0:

Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Link detected: yes

in ifcfg-ethN:
ETHTOOL_OPTS="autoneg off speed 100 duplex full"

Bonding

/etc/sysconfig/network-scripts/ifcfg-bond0, as follows:

DEVICE=bond0
ONBOOT=yes
BONDING_OPTS='mode=1 miimon=100'
BRIDGE=brbond0
NM_CONTROLLED=no

/etc/sysconfig/network-scripts/ifcfg-brbond0, as follows:

DEVICE=brbond0
ONBOOT=yes
TYPE=Bridge
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NM_CONTROLLED=no

ifcfg-ethN:
DEVICE=ethX
TYPE=Ethernet
USERCTL=no
SLAVE=yes
MASTER=bond0
BOOTPROTO=none
HWADDR=AA:BB:CC:DD:EE:FF
NM_CONTROLLED=no

ifcfg files

/etc/sysconfig/network-scripts/ifcfg-eth0 - Specify bridge name
/etc/sysconfig/network-scripts/ifcfg-br0 - br0 config file.
/etc/sysconfig/network-scripts/route-br0 - Static routing (optiona).

/etc/sysconfig/network-scripts/route-br0:
10.0.0.0/8 via 10.10.21.122 dev br0

brctl show
bridge name bridge id STP enabled interfaces
br0 8000.0030488e31ac no eth0
br1 8000.0030488e31ad no eth1
virbr0 8000.000000000000 yes


Backlinks: index Start
Created with Zim desktop wiki