Skip to content

Instantly share code, notes, and snippets.

View function-Lolicom's full-sized avatar

yodaremushi function-Lolicom

View GitHub Profile
@function-Lolicom
function-Lolicom / eth0_down_status
Created July 9, 2015 07:34
the NIC eth0 status down
$ cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
Bonding Mode: load balancing (xor)
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 500
Up Delay (ms): 0
Down Delay (ms): 0
@function-Lolicom
function-Lolicom / nic_status_check
Created July 9, 2015 07:30
the NIC status check
# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
Bonding Mode: load balancing (xor)
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 500
Up Delay (ms): 0
Down Delay (ms): 0
@function-Lolicom
function-Lolicom / bond0_check_it
Created July 9, 2015 06:26
bond0 check ifconfig
# ifconfig
bond0 Link encap:Ethernet HWaddr 00:22:19:4D:6E:3A
inet addr:192.168.0.33 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::222:19ff:fe6d:5e2a/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:44939 errors:0 dropped:0 overruns:0 frame:0
TX packets:237 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5122683 (4.8 MiB) TX bytes:33139 (32.3 KiB)
@function-Lolicom
function-Lolicom / network restart command
Created July 9, 2015 04:28
network restart command
service network restart
インターフェース bond0 を終了中: [ OK ]
ループバックインターフェースを終了中 [ OK ]
ループバックインターフェイスを呼び込み中 [ OK ]
インターフェース bond0 を活性化中:
Determining if ip address 172.18.2.207
is already in use for device bond0... [ OK ]
@function-Lolicom
function-Lolicom / ifcfg-bond0
Last active August 29, 2015 14:24
create nic-bond file
vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.0.33
BROADCAST=192.168.0.255
NETWORK=192.168.0.0
NETMASK=255.255.255.0
@function-Lolicom
function-Lolicom / ifcfg-eth0&ifcfg-eth1
Created July 9, 2015 03:56
the ifcfg-eth0 and ifcfg-eth1 file is edit
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
MASTER=bond0
SLAVE=yes
HWADDR=00:22:19:4D:6E:3A
@function-Lolicom
function-Lolicom / bonding.conf
Last active August 29, 2015 14:24
create bonding module file
vi /etc/modprobe.d/bonding.conf
alias bond0 bonding
options bond0 mode=1 primary=eth0 miimon=500