Juniper
Juniper Basic config
Initial
At the initial login prompt, type: root
Next type: cli
edit
delete chassis auto-image-upgrade
set system root-authentication plain-text-password
juniper1
commit
New Admin User
set system login user tst-admin class super-user authentication plain-text-password
juniper1
New Operator User
set system login user tst-operator class operator authentication plain-text-password
juniper1
Commit Variations
Change Screen Width
Router 1/2 hostname: r1/r2
Link between the two routers: 172.16.1.1/24 and 172.16.1.2/24
Loopback IP on r2: 172.16.40.1/24
r1:
set system host-name r1
set interfaces et-0/0/8 unit 0 family inet address 172.16.1.1/24
set routing-options static route 172.16.40.0/24 next-hop 172.16.1.2
set system host-name r2
set interfaces et-0/0/8 unit 0 family inet address 172.16.1.2/24
set interfaces lo0 unit 0 family inet address 172.16.40.1/24
root@r1> show route protocol static 172.16.40.0/24
inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
172.16.40.0/24 *[Static/5] 00:00:49
> to 172.16.1.2 via et-0/0/8.0
root@r1> ping 172.16.40.1 rapid
PING 172.16.40.1 (172.16.40.1) 56(84) bytes of data.
!!!!!
--- 172.16.40.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 43ms
rtt min/avg/max/mdev = 8.486/9.865/14.538/2.346 ms, ipg/ewma 10.684/12.108 ms
Router 1/2 hostname: r1/r2
Link between the two routers: 2001:db8::1/64 and 2001:db8::2/64
Loopback IP on r2: 2001:db8:0:40::1/64
r1:
set system host-name r1
set interfaces et-0/0/8 unit 0 family inet6 address 2001:db8::1/64
set routing-options rib inet6.0 static route 2001:db8:0:40::/64 next-hop 2001:db8::2
set system host-name r2
set interfaces et-0/0/8 unit 0 family inet6 address 2001:db8::2/64
set interfaces lo0 unit 0 family inet6 address 2001:db8:0:40::1/64
root@r1> show route protocol static 2001:db8:0:40::/64
inet6.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
2001:db8:0:40::/64 *[Static/5] 00:04:55
> to 2001:db8::2 via et-0/0/8.0
root@r1> ping 2001:db8:0:40::1 rapid
PING 2001:db8:0:40::1(2001:db8:0:40::1) 56 data bytes
!!!!!
--- 2001:db8:0:40::1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 57ms
rtt min/avg/max/mdev = 8.696/12.961/26.946/7.035 ms, ipg/ewma 14.234/19.682 ms
OSPFv2 Notes
Route preference = 10
Default OSPF Hello messages
Destination multicast 224.0.0.5
Area 0.0.0.0
Hello interval = 10 seconds
Dead interval = 40 seconds
Passive interfaces advertise the prefix in OSPF, but do not send HELLO messages out of the interface.
OSPFv2 Verification Commands
OSPFv2 View Configuration
The Customer has already enabled OSPF on r2.
Configure interface link to r2.
Task 1
Delete
LAN static routes on r1 for both IPv4 and IPv6.
Answer delete routing-options static route 172.16.40.0/24
delete routing-options rib inet6.0 static route 2001:db8:0:40::/64
Task 2
Answer set protocols ospf area 0 interface et-0/0/8.0
-
Answer show route protocol ospf
Task 3
Advertise the three
LAN prefixes to r2
Answer Make the three interfaces passive.
Answer set protocols ospf area 0 interface et-0/0/8.0 passive
set protocols ospf area 0 interface et-0/0/9.0 passive
set protocols ospf area 0 interface et-0/0/10.0 passive
Answer show route protocol ospf table inet.0
Task 3
OSPFv2 vs. OSPFv3
OSPFv2 | OSPFv3 |
Advertises only IPv4 | Can only advertise IPv4 or IPv4 and IPv6 |
Configured and verified using ospf | Configured and verified using ospf3 |
Both have |
Link-state databases |
Generate LSAs |
Use metric |
OSPFv3 Notes
Configuration for OSPFv3: IPv6
set protocols ospf area 0 interface et-0/0/0.0
set protocols ospf area 0 interface et-0/0/8.0 passive
set protocols ospf area 0 interface et-0/0/9.0 passive
set protocols ospf area 0 interface et-0/0/10.0 passive
OSPFv3 View Configuration
OSPFv3 Verification Commands
JNCIA-104