zNetLaB › Guided labs › Security
Palo Alto edge: zones, rules and OSPF with IOS
Security Advanced 4 devices 3 checked tasks 100 points Plan lab
A PA-VM between a trust LAN and an IOS router. Put the interfaces in zones and the virtual router, allow trust out, keep untrust out, and learn the far LAN by OSPF. You build it in a browser, type real commands at each device, and every task below is
checked against the running configuration — so you find out it is wrong before anybody else does.
Open this lab in the simulator
The simulator runs in your browser with nothing to install. This lab is part of the full simulator: open it free for 7 days with a new account, then with a plan. It needs an account, which keeps your progress.
The scenario
A PA-VM between a trust LAN and an IOS router. Put the interfaces in zones and the virtual router, allow trust out, keep untrust out, and learn the far LAN by OSPF.
Your role: a security engineer. Level: Advanced Done when: all 3 goals show as passed (100 points).
Network status
Devices: 2 routers, 2 PCs, cabled as drawn. No Layer 1 or Layer 2 faults: every link is connected and up. H1 is a host with 192.168.1.10/24, gateway 192.168.1.1. H2 is a host with 10.2.0.10/24, gateway 10.2.0.1. R1, PA start with an empty configuration.
Known problems
None: nothing is misconfigured. The network is simply not finished: what the goals list is what you have to build or secure.
Goals
H1 reaches H2, and H2 cannot open a session to H1 (40 pts) R1 and the PA are OSPF neighbours (30 pts) The PA learns the far LAN by OSPF (30 pts)
The activity, in order
H1 reaches H2, and H2 cannot open a session to H1 Layer 3 addresses on ethernet1/1 (10.0.12.2/30, zone untrust) and ethernet1/2 (192.168.1.1/24, zone trust), both in virtual router default, and one rule from trust to untrust with action allow. Commit.Why: Each goal is a state the lab can check on the running device. Verify with: test security-policy-match from trust to untrust source 192.168.1.10 destination 10.2.0.10 protocol 1 R1 and the PA are OSPF neighbours R1: router ospf 1, router-id 1.1.1.1, 10.0.0.0/8 in area 0. PA: protocol ospf enable yes, router-id 2.2.2.2, area 0.0.0.0 with ethernet1/1 enabled. Commit.Why: Each goal is a state the lab can check on the running device. Verify with: show routing protocol ospf neighbor The PA learns the far LAN by OSPF R1 advertises 10.2.0.0/24 into area 0 with the 10.0.0.0/8 network statement.Why: Each goal is a state the lab can check on the running device. Verify with: show routing route
Tips
Work in the order given: later goals depend on the earlier ones. After every change, run the verify command before moving on; do not guess. Stuck? Read the verify output first. It names the interface, neighbour or route that is wrong.
Why this matters
A PA-VM between a trust LAN and an IOS router. Put the interfaces in zones and the virtual router, allow trust out, keep untrust out, and learn the far LAN by OSPF.
What you will be able to do
H1 reaches H2, and H2 cannot open a session to H1
R1 and the PA are OSPF neighbours
The PA learns the far LAN by OSPF
The network
ISR 2911, PA-VM, PC — 4 devices in all, already cabled.
Gi0/1 ethernet1/1 ethernet1/2 Fa0 Gi0/0 Fa0 R1 PA H1 192.168.1.10/24 · gw 192.168.1.1 H2 10.2.0.10/24 · gw 10.2.0.1 Drawn from this lab: devices, cables, ports and the addresses already set.
Device Model Address already set
R1 ISR 2911 configure it
PA PA-VM configure it
H1 PC 192.168.1.10 / 255.255.255.0 gw 192.168.1.1
H2 PC 10.2.0.10 / 255.255.255.0 gw 10.2.0.1
Cabling
R1 Gi0/1 ↔ PA ethernet1/1
PA ethernet1/2 ↔ H1 Fa0
R1 Gi0/0 ↔ H2 Fa0
What is configured at the start
Nothing is configured to start with beyond the addresses above: you build the configuration from a clean start.
Tasks, and how each one is checked
Every task is decided by reading the live network — a neighbour in FULL, a ping that succeeds, a line in the running configuration — not by looking for a keyword you typed. The same command shows you what the lab sees.
# Task Pts How to verify it yourself
1 H1 reaches H2, and H2 cannot open a session to H1 40 On H1: ping 10.2.0.10 must succeed. and On H2: ping 192.168.1.10 must fail — the policy blocks it.
2 R1 and the PA are OSPF neighbours 30 On R1: show ip ospf neighbor shows at least 1 neighbour(s) in FULL.
3 The PA learns the far LAN by OSPF 30 On PA: show ip route lists 10.2.0.0/24.
Stuck? Ask the coach
Tell the coach what you see or what you tried. It gives you a hint, not the answer, the way a senior engineer would. Included with a free trial or any plan.
Ask the coach
Reference solution
Try it yourself first — the lab checks your work either way. This is one configuration that makes every task pass, device by device:
R1 interface GigabitEthernet0/0
ip address 10.2.0.1 255.255.255.0
no shutdown
exit
interface GigabitEthernet0/1
ip address 10.0.12.1 255.255.255.252
no shutdown
exit
ip route 192.168.1.0 255.255.255.0 10.0.12.2
router ospf 1
router-id 1.1.1.1
network 10.0.0.0 0.255.255.255 area 0
exit
PA configure
set network interface ethernet ethernet1/1 layer3 ip 10.0.12.2/30
set network interface ethernet ethernet1/2 layer3 ip 192.168.1.1/24
set zone untrust network layer3 ethernet1/1
set zone trust network layer3 ethernet1/2
set network virtual-router default interface [ ethernet1/1 ethernet1/2 ]
set rulebase security rules allow-out from trust to untrust source any destination any application any service any action allow
set network virtual-router default protocol ospf enable yes
set network virtual-router default protocol ospf router-id 2.2.2.2
set network virtual-router default protocol ospf area 0.0.0.0 interface ethernet1/1 enable yes
commit
exit
Related labs
Where to start
The lessons are open to everyone, all guided labs are listed by track, and
plans explains what is free and what is not.
CCNA®, CCNP® and Cisco® are trademarks of Cisco Systems, Inc. zNetLaB is not affiliated with or endorsed by Cisco.
Try the simulator in your browser, no sign-up