BADASS/P3/routeur-1.sh

33 lines
547 B
Bash

echo """conf t
hostname routeur_gbrochar-1
no ipv6 forwarding
!
interface eth0
ip address 10.1.1.1/30
!
interface eth1
ip address 10.1.1.5/30
!
interface eth2
ip address 10.1.1.9/30
!
interface lo
ip address 1.1.1.1/32
!
router bgp 1
neighbor ibgp peer-group
neighbor ibgp remote-as 1
neighbor ibgp update-source lo
bgp listen range 1.1.1.0/29 peer-group ibgp
!
address-family l2vpn evpn
neighbor ibgp activate
neighbor ibgp route-reflector-client
exit address-family
!
router ospf
network 0.0.0.0/0 area 0
!
line vty
!""" | vtysh