This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
juniper [2025/07/12 21:15] – adminent | juniper [2025/07/17 14:52] (current) – adminent | ||
---|---|---|---|
Line 34: | Line 34: | ||
* **commit and-quit** | * **commit and-quit** | ||
* Commit, then quit back to operator mode | * Commit, then quit back to operator mode | ||
+ | |||
+ | ===Change Screen Width=== | ||
+ | * This will change the screen width for the current session only. | ||
+ | * **set cli screen-width 500** | ||
+ | * Change 500 to any desired value | ||
+ | |||
+ | ===Configure IPv4 Static Route Between Two Routers=== | ||
+ | * Router 1/2 hostname: r1/r2 | ||
+ | * Link between the two routers: 172.16.1.1/ | ||
+ | * Loopback IP on r2: 172.16.40.1/ | ||
+ | * r1: | ||
+ | < | ||
+ | set interfaces et-0/0/8 unit 0 family inet address 172.16.1.1/ | ||
+ | set routing-options static route 172.16.40.0/ | ||
+ | * r2: | ||
+ | < | ||
+ | set interfaces et-0/0/8 unit 0 family inet address 172.16.1.2/ | ||
+ | set interfaces lo0 unit 0 family inet address 172.16.40.1/ | ||
+ | * Verify routing table on r1: | ||
+ | < | ||
+ | |||
+ | inet.0: 5 destinations, | ||
+ | + = Active Route, - = Last Active, * = Both | ||
+ | |||
+ | 172.16.40.0/ | ||
+ | > to 172.16.1.2 via et-0/ | ||
+ | * Ping from r1 to r2's 172.16.40.1 Loopback 0 interface | ||
+ | < | ||
+ | PING 172.16.40.1 (172.16.40.1) 56(84) bytes of data. | ||
+ | !!!!! | ||
+ | --- 172.16.40.1 ping statistics --- | ||
+ | 5 packets transmitted, | ||
+ | rtt min/ | ||
+ | |||
+ | ===Configure IPv6 Static Route Between Two Routers=== | ||
+ | * Router 1/2 hostname: r1/r2 | ||
+ | * Link between the two routers: 2001: | ||
+ | * Loopback IP on r2: 2001: | ||
+ | * r1: | ||
+ | < | ||
+ | set interfaces et-0/0/8 unit 0 family inet6 address 2001: | ||
+ | set routing-options rib inet6.0 static route 2001: | ||
+ | * r2: | ||
+ | < | ||
+ | set interfaces et-0/0/8 unit 0 family inet6 address 2001: | ||
+ | set interfaces lo0 unit 0 family inet6 address 2001: | ||
+ | * Verify routing table on r1: | ||
+ | < | ||
+ | |||
+ | inet6.0: 14 destinations, | ||
+ | + = Active Route, - = Last Active, * = Both | ||
+ | |||
+ | 2001: | ||
+ | > to 2001:db8::2 via et-0/ | ||
+ | * Ping from r1 to r2's 2001: | ||
+ | < | ||
+ | PING 2001: | ||
+ | !!!!! | ||
+ | --- 2001: | ||
+ | 5 packets transmitted, | ||
+ | rtt min/ | ||
+ | |||
+ | ===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=== | ||
+ | * **show ospf neighbor** | ||
+ | * **show route protocol ospf** | ||
+ | * **show route protocol ospf table inet.0** | ||
+ | |||
+ | ===OSPFv2 View Configuration=== | ||
+ | * **show configuration protocols ospf** | ||
+ | |||
+ | ===Configure OSPFv2=== | ||
+ | - 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 rib inet6.0 static route 2001: | ||
+ | |||
+ | ==Task 2== | ||
+ | * Create and OSPF neighbor connection to r2. | ||
+ | - ++Answer|< | ||
+ | * Verify neighborship. | ||
+ | - ++Answer|< | ||
+ | - ++Answer|< | ||
+ | |||
+ | ==Task 3== | ||
+ | * Advertise the three LAN prefixes to r2 | ||
+ | - ++Answer|Make the three interfaces passive. ++ | ||
+ | * Configuration | ||
+ | - ++Answer|< | ||
+ | set protocols ospf area 0 interface et-0/0/9.0 passive | ||
+ | set protocols ospf area 0 interface et-0/0/10.0 passive</ | ||
+ | * Verify OSPF route table | ||
+ | - ++Answer|< | ||
+ | |||
+ | ==Task 3== | ||
+ | * Advertise a default route to r2. | ||
+ | * Configure a routing policy to advertise between routing protocols. | ||
+ | - ++Answer|Under Construction ++ | ||
+ | |||
+ | |||
+ | ===OSPFv2 vs. OSPFv3=== | ||
+ | ^ OSPFv2 | ||
+ | |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=== | ||
+ | * HELLO messages are sent to ff02::5/128 | ||
+ | |||
+ | ===Configuration for OSPFv3: IPv6=== | ||
+ | * **set protocols ospf area 0 interface et-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=== | ||
+ | * **show configuration protocols ospf3** | ||
+ | |||
+ | ===OSPFv3 Verification Commands=== | ||
+ | * **show ospf3 neighbors** | ||
+ | * **show route protocol ospf3** | ||
+ | |||
===JNCIA-104=== | ===JNCIA-104=== | ||
[[https:// | [[https:// |