-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnotes.txt
113 lines (85 loc) · 3.35 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# ==========DOCKER=============
# To list active containers
$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e98191fc9f1b frrouting/frr:latest "/gns3/init.sh /sbin…" 5 minutes ago Up About a minute xenodochial_austin
# Connect into one
$ sudo docker exec -it e98191fc9f1b bash
# To build docker image from base
$ sudo docker build -t router P1/router
# ==========VTYSH===========
# To use the vtysh console (shell for FRR daemons)
$ vtysh
# Process and load a configuration file manually; each line in the file is read and processed as if it were being typed
$ copy [FILENAME] running-config
# Execute commands from a file
$ vtysh -f [FILENAME]
# List interfaces
$ sh int
# information about interfaces
$ show interface brief
# Enter configuration mode
$ conf t
# Note that you can edit the /etc/frr/vtysh.conf directly
# Enable ospf service on all interfaces
$ router ospf
$ network 0.0.0.0/0 are 0
# List interfaces running ospf
$ do sh ip ospf int
# Show route
$ do sh ip route
# Ping
$ do ping X.X.X.X
# ===========IS-IS============
$ router isis 1
# For router 1
$ net 49.0000.0000.0000.0001.00
# For router 2
$ net 49.0000.0000.0000.0002.00
# List isis interfaces
$ do sh isis int
# The NSAP 47.0001.aaaa.bbbb.cccc.00 consists of:
# Area = 47.0001
# System ID = aaaa.bbbb.cccc
# N-Selector = 00
# ===========DAEMONS=============
# Now swap change the content of /etc/frr/daemons by routers/daemons (Enabled bgpd, isisd, ospfd)
# Reboot router
# When running PS inside routers
$ ps
PID USER TIME COMMAND
1 root 0:00 /sbin/tini -- /usr/lib/frr/docker-start
31 root 0:00 /gns3/bin/busybox script -qfc while true; do TERM=vt100 /gns3/bin/busybox sh; done /dev/null
37 root 0:00 /bin/ash -c while true; do TERM=vt100 /gns3/bin/busybox sh; done
38 root 0:00 /gns3/bin/busybox sh
49 root 0:00 {docker-start} /bin/ash /usr/lib/frr/docker-start
65 root 0:00 /usr/lib/frr/watchfrr zebra bgpd ospfd isisd staticd
88 frr 0:00 /usr/lib/frr/zebra -d -F traditional -A 127.0.0.1 -s 90000000
93 frr 0:00 /usr/lib/frr/bgpd -d -F traditional -A 127.0.0.1
100 frr 0:00 /usr/lib/frr/ospfd -d -F traditional -A 127.0.0.1
103 frr 0:00 /usr/lib/frr/isisd -d -F traditional -A 127.0.0.1
106 frr 0:00 /usr/lib/frr/staticd -d -F traditional -A 127.0.0.1
108 root 0:00 bash
116 root 0:00 ps
# ==========OTHER===========
# Show bridge summary
$ brctl show br0
# Show route for routers
$ show ip route
# Show ospf neighbor
$ show ip ospf neighbor
# Sources
# ISIS NET
https://community.cisco.com/t5/routing/question-about-isis-nsap-addressing/td-p/4452789
https://community.cisco.com/t5/routing/is-is-nsap-address/td-p/417266
# GLOBAL
https://www.uni-koeln.de/~pbogusze/posts/FRRouting_SR_Segment_Routing_tech_demo.html
https://www.uni-koeln.de/~pbogusze/posts/FRRouting_basic_IS-IS_router_configuration.html
# DEFINITION
Au sein d'un AS, le protocole de routage « interne » de type IGP (notamment OSPF ou IS-IS) permet aux routeurs de cet AS de communiquer entre eux, et plus particulièrement en vue de monter des sessions BGP internes (iBGP)2.
Entre systèmes autonomes, le routage est « externe », en BGP externe (eBGP).
# PROTOCOLES INTERNE
OSPF
ISI
# PROTOCOLES EXTERNE
BGP