Turn off NetworkManager:
- chkconfig NetworkManager off
- systemclt disable NetworkManager.service
Setting gateway:
/etc/sysconfig/network
NETWORKING=yes HOSTNAME=[hostname] GATEWAY=[IP]
Bonding module:
/etc/modprobe.d/bond.conf
alias bond0 bonding options bond0 miimon=100 mode=1
Setting ordinary interfaces:
/etc/sysconfig/network-scripts/ifcfg-[dev_name]
DEVICE=[dev_name] BOOTPROTO=none HWADDR=AA:AA:AA:AA:AA:AA ONBOOT=yes MASTER=bond0 SLAVE=yes NM_CONTROLLED=no
Setting bond interfaces
/etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0 BOOTPROTO=none ONBOOT=yes IPADDR=[IP] NETMASK=[MASK] IPV6INIT=no NM_CONTROLLED=no
iwlist
- iwlist [interface] frequency
WIFI - wpa_supplicant
wpa_passphrase
- wpa_passphrase "[ssid]" "[passphrase]" #generating psk key which is used by wpa_supplicant.conf
wpa_supplicant.conf
/etc/wpa_supplicant/wpa_supplicant.conf
network={ ssid="leny" #psk="[opentext_passphrase]" psk=[psk_from_wpa_passphrase] scan_ssid=1 proto=WPA2 #WPA RSN priority=1 scan_ssid=1 #if ssid is hidden #key_mgmt=WPA-EAP #key_mgmt=WPA-PSK }
lanunch wifi steps:
- ip link set [dev_name] up
- iw [dev_name] scan
- wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -Dwext -i[dev_name] -B #run as daemon (-B flag)
- dhclient [dev_name]
- ip addr show [dev_name]
- route add default gw [IP]