Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- antidote@debian:~$ cat ripd-conf.json
- {
- "frr-ripd:ripd": {
- "instance": [
- {
- "vrf": "default",
- "redistribute": [
- {
- "protocol": "connected"
- },
- {
- "protocol": "kernel"
- }
- ]
- }
- ]
- }
- }
- antidote@debian:~$ sudo sysrepocfg frr-ripd -i ./ripd-conf.json -f json
- The new configuration was successfully applied.
- antidote@debian:/usr/lib/frr$ sudo sysrepocfg --datastore=running frr-ripd -o -f json -x
- {
- "frr-ripd:ripd": {
- "instance": [
- {
- "vrf": "default",
- "redistribute": [
- {
- "protocol": "connected"
- },
- {
- "protocol": "kernel"
- }
- ],
- "state": {
- "routes": {
- "route": [
- {
- "prefix": "0.0.0.0/0",
- "next-hop": "10.0.2.2",
- "interface": "ens3",
- "metric": 1
- },
- {
- "prefix": "10.0.2.0/24",
- "interface": "ens3",
- "metric": 1
- }
- ]
- }
- }
- }
- ]
- }
- }
- antidote@debian:/usr/lib/frr$ telnet 127.0.0.1 2602
- Trying 127.0.0.1...
- Connected to 127.0.0.1.
- Escape character is '^]'.
- Hello, this is FRRouting (version 7.2-dev).
- Copyright 1996-2005 Kunihiro Ishiguro, et al.
- User Access Verification
- Password:
- debian> en
- debian# show running-config
- Current configuration:
- !
- frr version 7.2-dev
- frr defaults traditional
- !
- hostname debian
- password antidotelabs
- !
- !
- !
- !
- router rip
- redistribute connected
- redistribute kernel
- !
- line vty
- !
- end
- debian# show ip rip
- Codes: R - RIP, C - connected, S - Static, O - OSPF, B - BGP
- Sub-codes:
- (n) - normal, (s) - static, (d) - default, (r) - redistribute,
- (i) - interface
- Network Next Hop Metric From Tag Time
- K(r) 0.0.0.0/0 10.0.2.2 1 self 0
- C(r) 10.0.2.0/24 0.0.0.0 1 self 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement