-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbond_interface
More file actions
55 lines (49 loc) · 1.09 KB
/
bond_interface
File metadata and controls
55 lines (49 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth0
auto eth1
auto eth2
iface eth1 inet dhcp
iface eth2 inet dhcp
# The primary network interface
#auto eth1
#iface eth1 inet manual
#bond-master bond0
#bond-primary eth1
# The secondary network interface
#auto eth2
#iface eth2 inet manual
#bond-master bond0
# Bonding interface configuration
#auto bond0
#iface bond0 inet static
#address 192.168.122.200
#netmask 255.255.255.0
#gateway 192.168.122.2
#bond-slaves eth1 eth2
#bond-miimon 100
#bond-mode balance-rr
## add
#auto eth0
#auto eth1
#iface eth1 inet dhcp
#iface eth0 inet dhcp
auto br0
iface br0 inet dhcp
#pre-up tunctl -t tap0 -u hz -g hz
#pre-up ip link set dev eth0 down
#pre-up brctl addbr br0
#pre-up brctl addif br0 eth0
#pre-up brctl addif br0 tap0
#pre-up ip link set dev tap0 up
#up chmod 0666 /dev/net/tun
#post-down ip link set dev tap0 down
#post-down ip link set dev br0 down
#post-down brctl delif br0 eth0
#post-down brctl delif br0 tap0
#post-down brctl delbr br0
bridge_ports eth0
bridge_fd 0
bridge_maxpage 12
bridge_stp off