OSPF and ACL Configuration Guide

0% found this document useful (0 votes)
462 views3 pages
The document describes configurations to practice basic OSPF routing and standard ACLs between networks. It includes configuring IP addresses and interfaces on routers R1 and R2 and switches…

Uploaded by

Marvin LS
  • Basic using OSPF and ACL (Solution)

Basic using OSPF and ACL (Solution).

The solution is marked as bold an italic.

The goal is practicing with the basic commands of OSPF and standard ACLs. You must do the next
configurations:

1. - Configure the IP addresses as:

- Host A: [Link]/24. Gateway: [Link]


IP: [Link]
Mask: [Link]
Gateway: [Link]
- Host B: [Link]/24. Gateway: [Link]
IP: [Link]
Mask: [Link]
Gateway: [Link]
- R1s G0/0: [Link]/24
Router>enable
Router#configure terminal
Router (config)#interface g0/0
Router (config-if)#ip address [Link] [Link]
Router (config-if)#no shutdown
Router (config-if)#end
- Host C: [Link]/25. Gateway: [Link]
IP: [Link]
Mask: [Link]
Gateway: [Link]
- R1s G0/1: [Link]/25
Router#configure terminal
Router (config)#interface g0/1
Router (config-if)#ip address [Link] [Link]
Router (config-if)#no shutdown
Router (config-if)#end
- S1: [Link]/24. Gateway: [Link]
IP: [Link]
Mask: [Link]
Gateway: [Link]
- S2: [Link]/24. Gateway: [Link]
IP: [Link]
Mask: [Link]
Gateway: [Link]
- R2s G0/0: [Link]/24
Router>enable
Router#configure terminal
Router (config)#interface g0/0
Router (config-if)#ip address [Link] [Link]
Router (config-if)#no shutdown
Router (config-if)#end
- R1s S0/3/0: [Link]/30
Router#configure terminal
Router (config)#interface s0/3/0
Router (config-if)#ip address [Link] [Link]
Router (config-if)#no shutdown
Router (config-if)#end

- R2s S0/3/0: [Link]/30


Router#configure terminal
Router (config)#interface s0/3/0
Router (config-if)#ip address [Link] [Link]
Router (config-if)#no shutdown
Router (config-if)#end

Check that you can ping between hosts in the same subnet:

- From Host A to Host B.


- From Host C to R1s G0/1 interface.
- From S1 to S2.
- From R1s S0/3/0 interface to R2s S0/3/0 interface.

Note that you cant ping between hosts in different subnets because the routers dont have any entry in
their routing table.

2. Enable OSPF in all interfaces both R1 and R2 (area 0) with only one subcommand in the OSPF
configuration.

R1:
Router#configure terminal
Router (config)#router ospf 1
Router (config-router)#network [Link] [Link] area 0
Router (config-router)#end

R2:
Router#configure terminal
Router (config)#router ospf 1
Router (config-router)#network [Link] [Link] area 0
Router (config-router)#end

Check that the neighboring relationships have been created between R1 and R2.

R1:
Router#show ip ospf neighbor
R2:
Router#show ip ospf neighbor

Check that, after configuring OSPF, you can ping between hosts in different subnets.

- From Host A to Host C.


- From Host C to S1.
- From Host A to S1.

2. Configure ACL on the right routers, interfaces and directions based on these requirements:

- Permit packets from S1 going to subnet of hosts A and B.


- Deny packets from S2 going to subnet of host A and B.
- Permit packets from S2 going to subnet of host C.
- Deny packets from S1 going to subnet of host C.

Using an outbound ACL on R1s G0/0, permit packets from S1 and deny all other packets.
Using an outbound ACL on R1s G0/1, permit packets from S2 and deny all other packets.

R1:
Router#configure terminal
Router (config)#access-list 1 permit [Link]
Router (config)#access-list 2 permit [Link]
Router (config)#interface G0/0
Router (config-if)#ip access-group 1 out
Router (config-if)#interface G0/1
Router (config-if)#ip access-group 2 out
Router (config-if)#end

After configuring ACL, check that:

- You can ping from S1 to host A and B, but not to host C.


- You can ping from S2 to host C, but not to hosts A and B.

Common questions

Powered by AI

ACLs (Access Control Lists) are used to control the flow of packets in a network, enhancing security by permitting or denying traffic based on predefined rules. In this configuration, ACLs are applied on R1 to manage traffic between different hosts and subnets. For instance, ACL on R1's G0/0 interface is configured to permit packets from S1 to reach hosts A and B while denying others, thereby preventing unauthorized access. Similarly, another ACL on R1's G0/1 interface allows packets from S2 to reach host C but denies traffic to A and B from S2, enforcing a security policy that restricts communication pathways according to network requirements. This selective traffic management helps in controlling access to critical network segments, thus protecting against potential internal threats or misuse.

Denied ACL entries can significantly impact network performance and security by actively preventing unauthorized access to protected resources, thus limiting potential security breaches. In this configuration, denying packets from S2 to hosts A and B ensures that certain traffic is blocked, protecting those hosts from unsolicited or potentially harmful data. However, overly restrictive ACLs might inadvertently block legitimate traffic, hindering performance by preventing required data flow and potentially leading to service interruptions. Therefore, ACL rules must balance security needs with network performance, crafting precise policies that prevent unauthorized access while permitting necessary communications.

Basic ACLs, also known as standard ACLs, offer limited granularity in traffic control as they filter packets purely based on source IP addresses without considering other factors like destination IP, protocols, or ports. This simplicity can be a limitation when there is a need for more refined traffic policies. For example, in this configuration, using outbound ACLs on R1 interfaces controls which subnets can communicate, but cannot differentiate between different types of traffic or provide specific security controls for individual services. The lack of granularity might lead to overly permissive or excessively restrictive policies that don't align well with complex security requirements, highlighting the need for advanced or extended ACLs when nuanced control is necessary.

OSPF (Open Shortest Path First) is essential in this network setup to enable dynamic routing between routers R1 and R2, as it allows them to exchange routing information and populate routing tables with the necessary paths. Without OSPF, routers lack knowledge about networks beyond their directly connected interfaces. By configuring OSPF in area 0 on both routers using the command `network 10.0.0.0 0.255.255.255 area 0`, routers R1 and R2 are enabled to advertise routes to each other, creating neighboring relationships which allow for routing between networks 10.1.1.0, 10.2.2.0, and 10.3.3.0. This enables hosts in different subnets, like Host A and Host C, to communicate.

Configuring gateways on hosts is necessary to facilitate communication with devices outside their local subnet. A gateway IP address allows a host to send traffic to other networks by forwarding packets that are destined for addresses outside of its local network. In this network layout, gateways are configured to point to the respective router interfaces (e.g., Hosts A and B have gateway IP 10.1.1.3) to ensure that data packets can be routed to appropriate destinations beyond their immediate subnet, such as from Host A to Host C via R1. This interconnectivity is essential for the holistic operation of the network, enabling effective data transfer across subnets through designated routing paths.

The command `network 10.0.0.0 0.255.255.255 area 0` on both R1 and R2 impacts OSPF operation by enabling OSPF on all interfaces with IP addresses within the 10.0.0.0/8 range, effectively simplifying the configuration process. This wild card mask (`0.255.255.255`) ensures that any interface with an IP in the range joins OSPF area 0, facilitating the creation of OSPF neighbor adjacencies and allowing for the advertisement of all subnets within the specified range. As a result, routers learn about all the networks connected to each other, thereby enabling comprehensive route updates and optimizing the dynamic routing process across the network.

Enabling OSPF on all interfaces simplifies network management and administration by ensuring dynamic and automatic route updates occur between routers R1 and R2. This configuration reduces administrative overhead, as network admins don't need to manually configure static routes for each subnet. OSPF automates the discovery of network topology changes and recalculates the best path dynamically, reducing downtime and maintaining optimal data flow. It also aids in maintaining consistent and accurate routing tables across routers, which helps prevent routing loops and ensures efficient traffic delivery throughout the network.

A network administrator might use the command `network 10.0.0.0 0.255.255.255 area 0` to simplify OSPF configuration and apply OSPF settings universally across all interfaces with IPs in the 10.0.0.0/8 range. This approach minimizes complexity by avoiding the need to specify each network individually, which is beneficial in dynamic environments with frequent reconfigurations or scaling. However, this broad approach can lead to less control and precision, potentially including unintended interfaces in OSPF, which administrators must manage to avoid security or performance issues. This command is thus favored when ease of management and wide-scale OSPF adoption across all relevant networks is prioritized over individual interface specificity.

Subnet masks determine the size of the network and the number of available host addresses within each subnet. In this configuration, different subnet masks are used to accommodate varying network sizes. For example, a /24 subnet mask (255.255.255.0) is used for hosts A and B, providing 254 usable IP addresses, sufficient for a larger subnet. In contrast, a /25 subnet mask (255.255.255.128) is used for Host C, offering only 126 host addresses, suitable for a smaller subnet. These subnet masks allow efficient IP address allocation, minimizing wastage while optimizing the network for current and anticipated needs. This design enables targeted network management and flexibility in accommodating different segment sizes.

The use of different subnet masks on interfaces influences future network scalability and redesign by determining the number of available host addresses and the ease of incorporating additional hosts or subnets. A /24 subnet mask, used for interfaces like those connected to hosts A and B, provides ample addresses for expansion, accommodating up to 254 hosts, promoting scalability within that network segment. In contrast, a /25 subnet mask, used for Host C, provides fewer addresses, limiting expansion within this subnet without redesign. These choices need careful consideration based on anticipated growth, as they affect how easily the network can adapt to increased demand or more complex routing needs.

Basic using OSPF and ACL (Solution). 
The solution is marked as bold an italic. 
The goal is practicing with the basic comman
- R1´s S0/3/0: 10.4.4.1/30 
 
 
Router#configure terminal 
 
 
Router (config)#interface s0/3/0 
 
 
Router (config-if)#ip
R2: 
 
 
 
Router#show ip ospf neighbor 
 
 
 
Check that, after configuring OSPF, you can ping between hosts in differen

You might also like