mirror of
https://github.com/knorrie/network-examples
synced 2025-08-29 13:39:01 +00:00
bgp-contd: rename interface ibgp to lan, confusing
This commit is contained in:
parent
bfa4d5cd74
commit
79bd71548b
@ -16,7 +16,7 @@ protocol ospf {
|
||||
area 0 {
|
||||
# BIRD ignores the IPv6 lo because it has no link local address
|
||||
stubnet 2001:db8::ff/128;
|
||||
interface "ibgp" {
|
||||
interface "lan" {
|
||||
};
|
||||
interface "ebgp_r10" {
|
||||
stub;
|
||||
|
@ -3,12 +3,12 @@ iface lo inet loopback
|
||||
up ip addr add 2001:db8::ff/128 dev lo
|
||||
down ip addr del 2001:db8::ff/128 dev lo
|
||||
|
||||
auto ibgp
|
||||
iface ibgp inet manual
|
||||
up ip link set up dev ibgp
|
||||
up ip addr add 2001:db8:0:1::ff/120 dev ibgp
|
||||
down ip addr del 2001:db8:0:1::ff/120 dev ibgp
|
||||
down ip link set down dev ibgp
|
||||
auto lan
|
||||
iface lan inet manual
|
||||
up ip link set up dev lan
|
||||
up ip addr add 2001:db8:0:1::ff/120 dev lan
|
||||
down ip addr del 2001:db8:0:1::ff/120 dev lan
|
||||
down ip link set down dev lan
|
||||
|
||||
auto ebgp_r10
|
||||
iface ebgp_r10 inet manual
|
||||
|
@ -16,7 +16,7 @@ protocol ospf {
|
||||
area 0 {
|
||||
# BIRD ignores the IPv6 lo because it has no link local address
|
||||
stubnet 2001:db8::1/128;
|
||||
interface "ibgp" {
|
||||
interface "lan" {
|
||||
};
|
||||
interface "ebgp_r11" {
|
||||
stub;
|
||||
|
@ -3,12 +3,12 @@ iface lo inet loopback
|
||||
up ip addr add 2001:db8::1/128 dev lo
|
||||
down ip addr del 2001:db8::1/128 dev lo
|
||||
|
||||
auto ibgp
|
||||
iface ibgp inet manual
|
||||
up ip link set up dev ibgp
|
||||
up ip addr add 2001:db8:0:1::1/120 dev ibgp
|
||||
down ip addr del 2001:db8:0:1::1/120 dev ibgp
|
||||
down ip link set down dev ibgp
|
||||
auto lan
|
||||
iface lan inet manual
|
||||
up ip link set up dev lan
|
||||
up ip addr add 2001:db8:0:1::1/120 dev lan
|
||||
down ip addr del 2001:db8:0:1::1/120 dev lan
|
||||
down ip link set down dev lan
|
||||
|
||||
auto ebgp_r11
|
||||
iface ebgp_r11 inet manual
|
||||
|
@ -16,7 +16,7 @@ protocol ospf {
|
||||
area 0 {
|
||||
# BIRD ignores the IPv6 lo because it has no link local address
|
||||
stubnet 2001:db8:10::10/128;
|
||||
interface "ibgp" {
|
||||
interface "lan" {
|
||||
};
|
||||
interface "ebgp_r0" {
|
||||
stub;
|
||||
|
@ -3,12 +3,12 @@ iface lo inet loopback
|
||||
up ip addr add 2001:db8:10::10/128 dev lo
|
||||
down ip addr del 2001:db8:10::10/128 dev lo
|
||||
|
||||
auto ibgp
|
||||
iface ibgp inet manual
|
||||
up ip link set up dev ibgp
|
||||
up ip addr add 2001:db8:10:2::10/120 dev ibgp
|
||||
down ip addr del 2001:db8:10:2::10/120 dev ibgp
|
||||
down ip link set down dev ibgp
|
||||
auto lan
|
||||
iface lan inet manual
|
||||
up ip link set up dev lan
|
||||
up ip addr add 2001:db8:10:2::10/120 dev lan
|
||||
down ip addr del 2001:db8:10:2::10/120 dev lan
|
||||
down ip link set down dev lan
|
||||
|
||||
auto ebgp_r0
|
||||
iface ebgp_r0 inet manual
|
||||
|
@ -16,7 +16,7 @@ protocol ospf {
|
||||
area 0 {
|
||||
# BIRD ignores the IPv6 lo because it has no link local address
|
||||
stubnet 2001:db8:10::11/128;
|
||||
interface "ibgp" {
|
||||
interface "lan" {
|
||||
};
|
||||
interface "ebgp_r1" {
|
||||
stub;
|
||||
|
@ -3,12 +3,12 @@ iface lo inet loopback
|
||||
up ip addr add 2001:db8:10::11/128 dev lo
|
||||
down ip addr del 2001:db8:10::11/128 dev lo
|
||||
|
||||
auto ibgp
|
||||
iface ibgp inet manual
|
||||
up ip link set up dev ibgp
|
||||
up ip addr add 2001:db8:10:2::11/120 dev ibgp
|
||||
down ip addr del 2001:db8:10:2::11/120 dev ibgp
|
||||
down ip link set down dev ibgp
|
||||
auto lan
|
||||
iface lan inet manual
|
||||
up ip link set up dev lan
|
||||
up ip addr add 2001:db8:10:2::11/120 dev lan
|
||||
down ip addr del 2001:db8:10:2::11/120 dev lan
|
||||
down ip link set down dev lan
|
||||
|
||||
auto ebgp_r1
|
||||
iface ebgp_r1 inet manual
|
||||
|
@ -16,7 +16,7 @@ protocol ospf {
|
||||
area 0 {
|
||||
# BIRD ignores the IPv6 lo because it has no link local address
|
||||
stubnet 2001:db8:10::12/128;
|
||||
interface "ibgp" {
|
||||
interface "lan" {
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -3,9 +3,9 @@ iface lo inet loopback
|
||||
up ip addr add 2001:db8:10::12/128 dev lo
|
||||
down ip addr del 2001:db8:10::12/128 dev lo
|
||||
|
||||
auto ibgp
|
||||
iface ibgp inet manual
|
||||
up ip link set up dev ibgp
|
||||
up ip addr add 2001:db8:10:2::12/120 dev ibgp
|
||||
down ip addr del 2001:db8:10:2::12/120 dev ibgp
|
||||
down ip link set down dev ibgp
|
||||
auto lan
|
||||
iface lan inet manual
|
||||
up ip link set up dev lan
|
||||
up ip addr add 2001:db8:10:2::12/120 dev lan
|
||||
down ip addr del 2001:db8:10:2::12/120 dev lan
|
||||
down ip link set down dev lan
|
||||
|
@ -16,7 +16,7 @@ protocol ospf {
|
||||
area 0 {
|
||||
# BIRD ignores the IPv6 lo because it has no link local address
|
||||
stubnet 2001:db8::2/128;
|
||||
interface "ibgp" {
|
||||
interface "lan" {
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -3,9 +3,9 @@ iface lo inet loopback
|
||||
up ip addr add 2001:db8::2/128 dev lo
|
||||
down ip addr del 2001:db8::2/128 dev lo
|
||||
|
||||
auto ibgp
|
||||
iface ibgp inet manual
|
||||
up ip link set up dev ibgp
|
||||
up ip addr add 2001:db8:0:1::2/120 dev ibgp
|
||||
down ip addr del 2001:db8:0:1::2/120 dev ibgp
|
||||
down ip link set down dev ibgp
|
||||
auto lan
|
||||
iface lan inet manual
|
||||
up ip link set up dev lan
|
||||
up ip addr add 2001:db8:0:1::2/120 dev lan
|
||||
down ip addr del 2001:db8:0:1::2/120 dev lan
|
||||
down ip link set down dev lan
|
||||
|
@ -6,7 +6,7 @@ cat <<EOF >> R0/config
|
||||
|
||||
lxc.network.type = veth
|
||||
lxc.network.flags = up
|
||||
lxc.network.name = ibgp
|
||||
lxc.network.name = lan
|
||||
lxc.network.veth.pair = r0.1
|
||||
lxc.network.script.up = /etc/lxc/lxc-openvswitch
|
||||
lxc.network.script.down = /etc/lxc/lxc-openvswitch
|
||||
@ -23,7 +23,7 @@ cat <<EOF >> R1/config
|
||||
|
||||
lxc.network.type = veth
|
||||
lxc.network.flags = up
|
||||
lxc.network.name = ibgp
|
||||
lxc.network.name = lan
|
||||
lxc.network.veth.pair = r1.1
|
||||
lxc.network.script.up = /etc/lxc/lxc-openvswitch
|
||||
lxc.network.script.down = /etc/lxc/lxc-openvswitch
|
||||
@ -47,7 +47,7 @@ cat <<EOF >> R2/config
|
||||
|
||||
lxc.network.type = veth
|
||||
lxc.network.flags = up
|
||||
lxc.network.name = ibgp
|
||||
lxc.network.name = lan
|
||||
lxc.network.veth.pair = r2.1
|
||||
lxc.network.script.up = /etc/lxc/lxc-openvswitch
|
||||
lxc.network.script.down = /etc/lxc/lxc-openvswitch
|
||||
@ -57,7 +57,7 @@ cat <<EOF >> R10/config
|
||||
|
||||
lxc.network.type = veth
|
||||
lxc.network.flags = up
|
||||
lxc.network.name = ibgp
|
||||
lxc.network.name = lan
|
||||
lxc.network.veth.pair = r10.2
|
||||
lxc.network.script.up = /etc/lxc/lxc-openvswitch
|
||||
lxc.network.script.down = /etc/lxc/lxc-openvswitch
|
||||
@ -81,7 +81,7 @@ cat <<EOF >> R11/config
|
||||
|
||||
lxc.network.type = veth
|
||||
lxc.network.flags = up
|
||||
lxc.network.name = ibgp
|
||||
lxc.network.name = lan
|
||||
lxc.network.veth.pair = r11.2
|
||||
lxc.network.script.up = /etc/lxc/lxc-openvswitch
|
||||
lxc.network.script.down = /etc/lxc/lxc-openvswitch
|
||||
@ -98,7 +98,7 @@ cat <<EOF >> R12/config
|
||||
|
||||
lxc.network.type = veth
|
||||
lxc.network.flags = up
|
||||
lxc.network.name = ibgp
|
||||
lxc.network.name = lan
|
||||
lxc.network.veth.pair = r12.2
|
||||
lxc.network.script.up = /etc/lxc/lxc-openvswitch
|
||||
lxc.network.script.down = /etc/lxc/lxc-openvswitch
|
||||
|
Loading…
x
Reference in New Issue
Block a user