Commit 73222552 authored by Wang Yiren's avatar Wang Yiren

merge

parent 09414635
.bash_history
\ No newline at end of file
To build the docker:
- `docker build -t quagga .`
To run the docker :
`docker run -v $(pwd):/root -it --privileged quagga`
In the docker you need to run:
- `zebra -f /root/confs/zebra-R1.conf -d -i /tmp/zebra-R1.pid`
- `bgpd -f /root/confs/bgpd-R1.conf -d -i /tmp/bgpd-R1.pid`
- `telnet localhost bgpd` with password `en` and `show ip bgp` to see current configuration
......
ls
cd root/
ls
zebra -f conf/zebra-R1.conf -d -i /tmp/zebra-R1.pid
cd root/
ls
zebra -f conf/zebra-R1.conf -d -i /tmp/zebra-R1.pid
zebra -f confs/zebra-R1.conf -d -i /tmp/zebra-R1.pid
ls
cd
! -*- bgp -*-
!
! BGPd sample configuratin file
!
! $Id: bgpd.conf.sample,v 1.1 2002/12/13 20:15:29 paul Exp $
!
hostname bgpd-R2
password en
enable password en
router bgp 2
bgp router-id 9.0.0.2
network 12.0.0.0/8
neighbor 9.0.0.1 remote-as 1
neighbor 9.0.0.1 update-source 9.0.0.2
neighbor 9.0.0.1 ebgp-multihop
neighbor 9.0.0.1 next-hop-self
neighbor 9.0.0.1 timers 5 5
neighbor 9.0.1.2 remote-as 3
neighbor 9.0.1.2 update-source 9.0.1.1
neighbor 9.0.1.2 ebgp-multihop
neighbor 9.0.1.2 next-hop-self
neighbor 9.0.1.2 timers 5 5
log file /tmp/R2-bgpd.log
debug bgp as4
debug bgp events
debug bgp filters
debug bgp fsm
debug bgp keepalives
debug bgp updates
!
log stdout
#!/bin/bash
echo 'starting ...'
zebra -f /root/confs/zebra-R1.conf -d -i /tmp/zebra-$1.pid
bgpd -f /root/confs/bgpd-R1.conf -d -i /tmp/bgpd-$1.pid
echo 'Done !'
bash
echo 'Hey you !'
sleep 100000000
\ No newline at end of file
! -*- zebra -*-
hostname R2
password en
enable password en
!
interface lo
ip address 127.0.0.1/32
interface R2-eth1
ip address 12.0.1.254/24
interface R2-eth2
ip address 12.0.2.254/24
interface R2-eth3
ip address 12.0.3.254/24
!
interface R2-eth4
ip address 9.0.0.2/24
interface R2-eth5
ip address 9.0.1.1/24
log file /tmp/R2.log
version: "3"
services:
router1:
build: .
volumes:
- "./:/root"
command: /root/confs/setup.sh R1
privileged: true
router2:
build: .
volumes:
- "./confs:/root"
command: /root/setup.sh R2
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