Config reseau
De BlaxWiki
Révision datée du 8 juin 2012 à 15:58 par 217.174.199.129 (discussion)
- Config interface réseau de base sous Centos
DEVICE=ethX ONBOOT=yes BOOTPROTO=static HWADDR=00:E0:81:34:BE:BB (permet de forcer la carte avec la mac xxx d'être ethX) IPADDR=10.252.43.131 BROADCAST=10.252.43.255 NETWORK=10.252.43.128 NETMASK=255.255.255.128 PEERDNS=no ETHTOOL_OPTS="autoneg off speed 100 duplex full" MTU=9000 ------------ DEVICE=eth0.250 VLAN=yes --- Fichier route-ethX 10.0.0.0/8 via 10.252.44.126 172.16.0.0/12 via 10.252.44.126 192.168.0.0/16 via 10.252.44.126
- Config interface réseau de base sous Debian
auto lo
iface lo inet loopback
# The primary network interface
auto eth1
allow-hotplug eth1
iface eth1 inet static
address 217.174.206.178
netmask 255.255.255.224
network 217.174.206.160
broadcast 217.174.206.191
gateway 217.174.206.190
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 217.174.199.225 92.43.252.215
pre-up ethtool -s eth1 speed 100 duplex full autoneg off
MTU="9000"