Commit 77ad6899 authored by Matous Holinka's avatar Matous Holinka

netlab: new feature with 2 areas added

parent 20ee7e4b
log "bird.log" all;
# debug protocols all;
router id 192.168.1.1;
ipv4 table master4;
ipv6 table master6;
protocol device {
scan time 10;
}
protocol kernel kernel4 {
scan time 20;
# metric 64;
# disabled;
ipv4 {
# export all;
export where source = RTS_OSPF;
};
}
protocol kernel kernel6 {
scan time 20;
# metric 64;
# disabled;
ipv6 {
# export all;
export where source = RTS_OSPF;
};
}
protocol static static4 {
ipv4;
route 10.10.0.0/24 via 192.168.1.2;
route 10.10.1.0/24 via 192.168.1.2 { bgp_large_community.add((10,20,30)); bgp_large_community.add((10,(20*3),10)); };
}
protocol static static6 {
ipv6;
route 2001:db8:10:10::/64 via 2001:db8:1:1::10;
route 2001:db8:10:11::/64 via 2001:db8:1:1::10;
}
protocol ospf v3 ospf4 {
ecmp;
ipv4 {
import all;
export where source = RTS_STATIC;
};
area 0 {
interface "ve0" { stub; };
interface "ve1" { hello 5; type ptp; };
interface "ve2" { hello 5; type ptp; };
};
}
protocol ospf v3 ospf6 {
ecmp;
ipv6 {
import all;
export where source = RTS_STATIC;
};
area 0 {
interface "ve0" { stub; };
interface "ve1" { hello 5; type ptp; };
interface "ve2" { hello 5; type ptp; };
};
}
log "bird.log" all;
# debug protocols all;
router id 192.168.2.1;
ipv4 table master4;
ipv6 table master6;
protocol device {
scan time 10;
}
protocol kernel kernel4 {
scan time 20;
# disabled;
ipv4 {
# export all;
export where source = RTS_OSPF;
};
}
protocol kernel kernel6 {
scan time 20;
# disabled;
ipv6 {
# export all;
export where source = RTS_OSPF;
};
}
protocol static static4 {
ipv4;
route 10.50.0.0/24 via 192.168.2.2;
route 10.50.1.0/24 via 192.168.2.2;
route 10.20.0.0/24 via 192.168.2.2;
}
protocol static static6 {
ipv6;
route 2001:db8:50:1::/64 via 2001:db8:2:1::10;
route 2001:db8:50:2::/64 via 2001:db8:2:1::10;
route 2001:db8:20:10::/64 via 2001:db8:2:1::10;
}
protocol ospf v3 ospf4 {
# ecmp;
ipv4 {
import all;
export where source = RTS_STATIC;
};
area 0 {
stubnet 192.168.120.0/24 { cost 100; };
stubnet 192.168.220.0/32 { cost 100; };
interface "ve0" { stub; };
interface "ve1" { hello 5; type ptp; };
interface "ve2" { hello 5; type ptp; };
};
}
protocol ospf v3 ospf6 {
# ecmp;
ipv6 {
import all;
export where source = RTS_STATIC;
};
area 0 {
interface "ve0" { stub; };
interface "ve1" { hello 5; type ptp; };
interface "ve2" { hello 5; type ptp; };
};
}
log "bird.log" all;
# debug protocols all;
router id 192.168.3.1;
ipv4 table master4;
ipv6 table master6;
protocol device {
scan time 10;
}
protocol kernel kernel4 {
scan time 20;
# disabled;
ipv4 {
# export all;
export where source = RTS_OSPF;
};
}
protocol kernel kernel6 {
scan time 20;
# disabled;
ipv6 {
# export all;
export where source = RTS_OSPF;
};
}
protocol static static4 {
ipv4;
route 10.30.0.0/24 via 192.168.3.2;
}
protocol static static6 {
ipv6;
route 2001:db8:30:10::/64 via 2001:db8:3:1::10;
}
protocol ospf v3 ospf4 {
# ecmp;
ipv4 {
import all;
export where source = RTS_STATIC;
};
area 0 {
stubnet 192.168.120.0/24 { cost 400; };
stubnet 192.168.220.0/32 { cost 10; };
interface "ve0" { stub; };
interface "ve1" { hello 5; type ptp; };
interface "ve2" { hello 5; type ptp; };
};
area 1 {
interface "ve0" { stub; };
interface "ve1" { hello 5; type ptp; };
interface "ve2" { hello 5; type ptp; };
interface "ve3" { hello 5; type ptp; };
interface "ve4" { hello 5; type ptp; };
};
}
protocol ospf v3 ospf6 {
# ecmp;
ipv6 {
import all;
export where source = RTS_STATIC;
};
area 0 {
interface "ve0" { stub; };
interface "ve1" { hello 5; type ptp; };
interface "ve2" { hello 5; type ptp; };
};
area 1 {
interface "ve0" { stub; };
interface "ve1" { hello 5; type ptp; };
interface "ve2" { hello 5; type ptp; };
interface "ve3" { hello 5; type ptp; };
interface "ve4" { hello 5; type ptp; };
};
}
log "bird.log" all;
# debug protocols all;
router id 192.168.4.1;
ipv4 table master4;
ipv6 table master6;
protocol device {
scan time 10;
}
protocol kernel kernel4 {
scan time 20;
# disabled;
ipv4 {
# export all;
export where source = RTS_OSPF;
};
}
protocol kernel kernel6 {
scan time 20;
# disabled;
ipv6 {
# export all;
export where source = RTS_OSPF;
};
}
protocol static static4 {
ipv4;
route 10.50.0.0/24 via 192.168.4.2 { bgp_local_pref = 500; };
route 10.50.1.0/24 via 192.168.4.2 { bgp_local_pref = 500; };
route 10.40.0.0/24 via 192.168.4.2 { bgp_local_pref = 500; };
route 10.40.1.0/24 via 192.168.4.2 mpls 400 { bgp_local_pref = 500; };
}
protocol static static4x {
ipv4;
disabled;
}
protocol static static6 {
ipv6;
route 2001:db8:50:1::/64 via 2001:db8:4:1::10;
route 2001:db8:50:2::/64 via 2001:db8:4:1::10;
route 2001:db8:40:10::/64 via 2001:db8:4:1::10;
}
protocol ospf v3 ospf4 {
# ecmp;
ipv4 {
import all;
export where source = RTS_STATIC;
};
area 1 {
stubnet 192.168.120.0/24 { cost 10; };
stubnet 192.168.220.0/32 { cost 400; };
interface "ve0" { stub; };
interface "ve1" { hello 5; type ptp; };
interface "ve2" { hello 5; type ptp; };
interface "ve3" { hello 5; type ptp; };
interface "ve4" { hello 5; type ptp; };
};
}
protocol ospf v3 ospf6 {
# ecmp;
ipv6 {
import all;
export where source = RTS_STATIC;
};
area 1 {
interface "ve0" { stub; };
interface "ve1" { hello 5; type ptp; };
interface "ve2" { hello 5; type ptp; };
interface "ve3" { hello 5; type ptp; };
interface "ve4" { hello 5; type ptp; };
};
}
log "bird.log" all;
# debug protocols all;
router id 192.168.5.1;
ipv4 table master4;
ipv6 table master6;
protocol device {
scan time 10;
}
protocol kernel kernel4 {
scan time 20;
# disabled;
ipv4 {
# export all;
export where source = RTS_OSPF;
};
}
protocol kernel kernel6 {
scan time 20;
# disabled;
ipv6 {
# export all;
export where source = RTS_OSPF;
};
}
protocol static static4 {
ipv4;
route 10.50.0.0/24 via 192.168.5.2 { bgp_local_pref = 500; };
route 10.50.1.0/24 via 192.168.5.2 { bgp_local_pref = 500; };
route 10.40.0.0/24 via 192.168.5.2 { bgp_local_pref = 500; };
route 10.40.1.0/24 via 192.168.5.2 mpls 400 { bgp_local_pref = 500; };
}
protocol static static4x {
ipv4;
disabled;
}
protocol static static6 {
ipv6;
route 2001:db8:50:1::/64 via 2001:db8:5:1::10;
route 2001:db8:50:2::/64 via 2001:db8:5:1::10;
route 2001:db8:50:10::/64 via 2001:db8:5:1::10;
}
protocol ospf v3 ospf4 {
# ecmp;
ipv4 {
import all;
export where source = RTS_STATIC;
};
area 1 {
stubnet 192.168.120.0/24 { cost 10; };
stubnet 192.168.220.0/32 { cost 400; };
interface "ve0" { stub; };
interface "ve1" { hello 5; type ptp; };
interface "ve2" { hello 5; type ptp; };
interface "ve3" { hello 5; type ptp; };
interface "ve4" { hello 5; type ptp; };
};
}
protocol ospf v3 ospf6 {
# ecmp;
ipv6 {
import all;
export where source = RTS_STATIC;
};
area 1 {
interface "ve0" { stub; };
interface "ve1" { hello 5; type ptp; };
interface "ve2" { hello 5; type ptp; };
interface "ve3" { hello 5; type ptp; };
interface "ve4" { hello 5; type ptp; };
};
}
NETLAB_NODES="m1 m2 m3 m4 m5"
netlab_init
if_dummy m1 ve0 192.168.1 2001:db8:01:1
if_dummy m2 ve0 192.168.2 2001:db8:02:1
if_dummy m3 ve0 192.168.3 2001:db8:03:1
if_dummy m4 ve0 192.168.4 2001:db8:04:1
if_dummy m5 ve0 192.168.5 2001:db8:05:1
if_veth m1 ve1 m2 ve1 192.168.10
if_veth m2 ve2 m3 ve1 192.168.11
if_veth m3 ve2 m1 ve2 192.168.12
if_veth m4 ve1 m5 ve1 192.168.13
if_veth m5 ve2 m3 ve3 192.168.14
if_veth m3 ve4 m4 ve2 192.168.15
netlab_start
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment