I'm just playing with some lab stuff and something came up that seems overly complex and I wondered if there was a simpler way to do it.
My routing table is:
C 10.100.100.0/24 is directly connected, Vlan15
C 10.100.101.0/24 is directly connected, Vlan12
C 10.100.99.0/29 is directly connected, GigabitEthernet0/1
S* 0.0.0.0/0 [1/0] via 10.100.99.1
I'm working on the assumption that 10.100.100.0/24 and 10.100.101.0/24 are DMZ networks and LAN is somewhere else not relevant. Communications between the two networks must be non-existant.
I've restricted it via a couple of access-lists assigned to the relevant VLAN interface:
Extended IP access list 101
10 permit ip 10.100.100.0 0.0.0.255 10.100.99.0 0.0.0.7 (2 matches)
20 permit ip 10.100.100.0 0.0.0.255 10.100.100.0 0.0.0.255 (53 matches)
30 deny ip any any (8 matches)
Extended IP access list 102
10 permit ip 10.100.101.0 0.0.0.255 10.100.99.0 0.0.0.7
20 permit ip 10.100.101.0 0.0.0.255 10.100.101.0 0.0.0.255 (7 matches)
30 deny ip any any
Now this all works ok. However, it does seem a little long winded. Given there is no routing protocol running and the networks are directly connected is it possible to rather stop it routing that particular network so all traffic is fed back to the default gateway without access lists?
If I put the given scenario live for example I may have to configure 10 such networks some with access to others and some without which is a bit of a hassle, especially if I'm not about to do it!
My routing table is:
C 10.100.100.0/24 is directly connected, Vlan15
C 10.100.101.0/24 is directly connected, Vlan12
C 10.100.99.0/29 is directly connected, GigabitEthernet0/1
S* 0.0.0.0/0 [1/0] via 10.100.99.1
I'm working on the assumption that 10.100.100.0/24 and 10.100.101.0/24 are DMZ networks and LAN is somewhere else not relevant. Communications between the two networks must be non-existant.
I've restricted it via a couple of access-lists assigned to the relevant VLAN interface:
Extended IP access list 101
10 permit ip 10.100.100.0 0.0.0.255 10.100.99.0 0.0.0.7 (2 matches)
20 permit ip 10.100.100.0 0.0.0.255 10.100.100.0 0.0.0.255 (53 matches)
30 deny ip any any (8 matches)
Extended IP access list 102
10 permit ip 10.100.101.0 0.0.0.255 10.100.99.0 0.0.0.7
20 permit ip 10.100.101.0 0.0.0.255 10.100.101.0 0.0.0.255 (7 matches)
30 deny ip any any
Now this all works ok. However, it does seem a little long winded. Given there is no routing protocol running and the networks are directly connected is it possible to rather stop it routing that particular network so all traffic is fed back to the default gateway without access lists?
If I put the given scenario live for example I may have to configure 10 such networks some with access to others and some without which is a bit of a hassle, especially if I'm not about to do it!