2
0
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:
Hans van Kranenburg 2015-09-19 23:03:34 +02:00
parent bfa4d5cd74
commit 79bd71548b
13 changed files with 48 additions and 48 deletions

View File

@ -16,7 +16,7 @@ protocol ospf {
area 0 { area 0 {
# BIRD ignores the IPv6 lo because it has no link local address # BIRD ignores the IPv6 lo because it has no link local address
stubnet 2001:db8::ff/128; stubnet 2001:db8::ff/128;
interface "ibgp" { interface "lan" {
}; };
interface "ebgp_r10" { interface "ebgp_r10" {
stub; stub;

View File

@ -3,12 +3,12 @@ iface lo inet loopback
up ip addr add 2001:db8::ff/128 dev lo up ip addr add 2001:db8::ff/128 dev lo
down ip addr del 2001:db8::ff/128 dev lo down ip addr del 2001:db8::ff/128 dev lo
auto ibgp auto lan
iface ibgp inet manual iface lan inet manual
up ip link set up dev ibgp up ip link set up dev lan
up ip addr add 2001:db8:0:1::ff/120 dev ibgp up ip addr add 2001:db8:0:1::ff/120 dev lan
down ip addr del 2001:db8:0:1::ff/120 dev ibgp down ip addr del 2001:db8:0:1::ff/120 dev lan
down ip link set down dev ibgp down ip link set down dev lan
auto ebgp_r10 auto ebgp_r10
iface ebgp_r10 inet manual iface ebgp_r10 inet manual

View File

@ -16,7 +16,7 @@ protocol ospf {
area 0 { area 0 {
# BIRD ignores the IPv6 lo because it has no link local address # BIRD ignores the IPv6 lo because it has no link local address
stubnet 2001:db8::1/128; stubnet 2001:db8::1/128;
interface "ibgp" { interface "lan" {
}; };
interface "ebgp_r11" { interface "ebgp_r11" {
stub; stub;

View File

@ -3,12 +3,12 @@ iface lo inet loopback
up ip addr add 2001:db8::1/128 dev lo up ip addr add 2001:db8::1/128 dev lo
down ip addr del 2001:db8::1/128 dev lo down ip addr del 2001:db8::1/128 dev lo
auto ibgp auto lan
iface ibgp inet manual iface lan inet manual
up ip link set up dev ibgp up ip link set up dev lan
up ip addr add 2001:db8:0:1::1/120 dev ibgp up ip addr add 2001:db8:0:1::1/120 dev lan
down ip addr del 2001:db8:0:1::1/120 dev ibgp down ip addr del 2001:db8:0:1::1/120 dev lan
down ip link set down dev ibgp down ip link set down dev lan
auto ebgp_r11 auto ebgp_r11
iface ebgp_r11 inet manual iface ebgp_r11 inet manual

View File

@ -16,7 +16,7 @@ protocol ospf {
area 0 { area 0 {
# BIRD ignores the IPv6 lo because it has no link local address # BIRD ignores the IPv6 lo because it has no link local address
stubnet 2001:db8:10::10/128; stubnet 2001:db8:10::10/128;
interface "ibgp" { interface "lan" {
}; };
interface "ebgp_r0" { interface "ebgp_r0" {
stub; stub;

View File

@ -3,12 +3,12 @@ iface lo inet loopback
up ip addr add 2001:db8:10::10/128 dev lo up ip addr add 2001:db8:10::10/128 dev lo
down ip addr del 2001:db8:10::10/128 dev lo down ip addr del 2001:db8:10::10/128 dev lo
auto ibgp auto lan
iface ibgp inet manual iface lan inet manual
up ip link set up dev ibgp up ip link set up dev lan
up ip addr add 2001:db8:10:2::10/120 dev ibgp up ip addr add 2001:db8:10:2::10/120 dev lan
down ip addr del 2001:db8:10:2::10/120 dev ibgp down ip addr del 2001:db8:10:2::10/120 dev lan
down ip link set down dev ibgp down ip link set down dev lan
auto ebgp_r0 auto ebgp_r0
iface ebgp_r0 inet manual iface ebgp_r0 inet manual

View File

@ -16,7 +16,7 @@ protocol ospf {
area 0 { area 0 {
# BIRD ignores the IPv6 lo because it has no link local address # BIRD ignores the IPv6 lo because it has no link local address
stubnet 2001:db8:10::11/128; stubnet 2001:db8:10::11/128;
interface "ibgp" { interface "lan" {
}; };
interface "ebgp_r1" { interface "ebgp_r1" {
stub; stub;

View File

@ -3,12 +3,12 @@ iface lo inet loopback
up ip addr add 2001:db8:10::11/128 dev lo up ip addr add 2001:db8:10::11/128 dev lo
down ip addr del 2001:db8:10::11/128 dev lo down ip addr del 2001:db8:10::11/128 dev lo
auto ibgp auto lan
iface ibgp inet manual iface lan inet manual
up ip link set up dev ibgp up ip link set up dev lan
up ip addr add 2001:db8:10:2::11/120 dev ibgp up ip addr add 2001:db8:10:2::11/120 dev lan
down ip addr del 2001:db8:10:2::11/120 dev ibgp down ip addr del 2001:db8:10:2::11/120 dev lan
down ip link set down dev ibgp down ip link set down dev lan
auto ebgp_r1 auto ebgp_r1
iface ebgp_r1 inet manual iface ebgp_r1 inet manual

View File

@ -16,7 +16,7 @@ protocol ospf {
area 0 { area 0 {
# BIRD ignores the IPv6 lo because it has no link local address # BIRD ignores the IPv6 lo because it has no link local address
stubnet 2001:db8:10::12/128; stubnet 2001:db8:10::12/128;
interface "ibgp" { interface "lan" {
}; };
}; };
} }

View File

@ -3,9 +3,9 @@ iface lo inet loopback
up ip addr add 2001:db8:10::12/128 dev lo up ip addr add 2001:db8:10::12/128 dev lo
down ip addr del 2001:db8:10::12/128 dev lo down ip addr del 2001:db8:10::12/128 dev lo
auto ibgp auto lan
iface ibgp inet manual iface lan inet manual
up ip link set up dev ibgp up ip link set up dev lan
up ip addr add 2001:db8:10:2::12/120 dev ibgp up ip addr add 2001:db8:10:2::12/120 dev lan
down ip addr del 2001:db8:10:2::12/120 dev ibgp down ip addr del 2001:db8:10:2::12/120 dev lan
down ip link set down dev ibgp down ip link set down dev lan

View File

@ -16,7 +16,7 @@ protocol ospf {
area 0 { area 0 {
# BIRD ignores the IPv6 lo because it has no link local address # BIRD ignores the IPv6 lo because it has no link local address
stubnet 2001:db8::2/128; stubnet 2001:db8::2/128;
interface "ibgp" { interface "lan" {
}; };
}; };
} }

View File

@ -3,9 +3,9 @@ iface lo inet loopback
up ip addr add 2001:db8::2/128 dev lo up ip addr add 2001:db8::2/128 dev lo
down ip addr del 2001:db8::2/128 dev lo down ip addr del 2001:db8::2/128 dev lo
auto ibgp auto lan
iface ibgp inet manual iface lan inet manual
up ip link set up dev ibgp up ip link set up dev lan
up ip addr add 2001:db8:0:1::2/120 dev ibgp up ip addr add 2001:db8:0:1::2/120 dev lan
down ip addr del 2001:db8:0:1::2/120 dev ibgp down ip addr del 2001:db8:0:1::2/120 dev lan
down ip link set down dev ibgp down ip link set down dev lan

View File

@ -6,7 +6,7 @@ cat <<EOF >> R0/config
lxc.network.type = veth lxc.network.type = veth
lxc.network.flags = up lxc.network.flags = up
lxc.network.name = ibgp lxc.network.name = lan
lxc.network.veth.pair = r0.1 lxc.network.veth.pair = r0.1
lxc.network.script.up = /etc/lxc/lxc-openvswitch lxc.network.script.up = /etc/lxc/lxc-openvswitch
lxc.network.script.down = /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.type = veth
lxc.network.flags = up lxc.network.flags = up
lxc.network.name = ibgp lxc.network.name = lan
lxc.network.veth.pair = r1.1 lxc.network.veth.pair = r1.1
lxc.network.script.up = /etc/lxc/lxc-openvswitch lxc.network.script.up = /etc/lxc/lxc-openvswitch
lxc.network.script.down = /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.type = veth
lxc.network.flags = up lxc.network.flags = up
lxc.network.name = ibgp lxc.network.name = lan
lxc.network.veth.pair = r2.1 lxc.network.veth.pair = r2.1
lxc.network.script.up = /etc/lxc/lxc-openvswitch lxc.network.script.up = /etc/lxc/lxc-openvswitch
lxc.network.script.down = /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.type = veth
lxc.network.flags = up lxc.network.flags = up
lxc.network.name = ibgp lxc.network.name = lan
lxc.network.veth.pair = r10.2 lxc.network.veth.pair = r10.2
lxc.network.script.up = /etc/lxc/lxc-openvswitch lxc.network.script.up = /etc/lxc/lxc-openvswitch
lxc.network.script.down = /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.type = veth
lxc.network.flags = up lxc.network.flags = up
lxc.network.name = ibgp lxc.network.name = lan
lxc.network.veth.pair = r11.2 lxc.network.veth.pair = r11.2
lxc.network.script.up = /etc/lxc/lxc-openvswitch lxc.network.script.up = /etc/lxc/lxc-openvswitch
lxc.network.script.down = /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.type = veth
lxc.network.flags = up lxc.network.flags = up
lxc.network.name = ibgp lxc.network.name = lan
lxc.network.veth.pair = r12.2 lxc.network.veth.pair = r12.2
lxc.network.script.up = /etc/lxc/lxc-openvswitch lxc.network.script.up = /etc/lxc/lxc-openvswitch
lxc.network.script.down = /etc/lxc/lxc-openvswitch lxc.network.script.down = /etc/lxc/lxc-openvswitch