Question : Cisco IOS: Problem with adding a secondary IP address

I've got a Cisco 2600 router running IOS 12.1.  I want to add a second subnet to ethernet port 0.  I added the subnet, 192.168.100.0/24 as the secondary.  The configuration looks like:

interface Ethernet0
 description Plymouth Private segment
 ip address 192.168.100.1 255.255.255.0 secondary
 ip address 200.100.50.1 255.255.255.0
 ip access-group 100 out

or graphically,


                                        Router
                                           |
                                           |  Network A address = 200.100.50.1
                                           |  Network B address = 192.168.100.1
                                           |
                                           |
                 ----------------------------------------------
                 |                                                       |
                 |                                                       |
              Host A    200.100.50.2                 Host B  192.168.100.100



The router can successfully ping both hosts.
Host A can successfully ping the router
Host B can successfully ping the router

Host A cannot ping Host B
Host B cannot ping Host A (or anything other than the router, which is the only other device on Network B so far)

When I do a show ip route, both subnets show as being directly connected to ethernet0.
Do I have a routing problem, an access-list problem, or something I don't know to ask about problem?

Answer : Cisco IOS: Problem with adding a secondary IP address

Why would the router do routing in this case ?

200.x.x.1 address is a public address & 192.168.x.1 address is a private address.

Routing wouldn't happen unless one of them is made into same class by NAT.

Cheers,
Rajesh
Random Solutions  
 
programming4us programming4us