what I guess I'm asking
thefear78
Member Posts: 30 ■■□□□□□□□□
in CCNA & CCENT
is can I have two hosts directly connected to two seperate ethernet ports and 'talk' to each other?
I should not have to set static routes using the exit ethernet ports to accomplish this should I?
Could you give me a simple config to meditate on as this is driving me nuts!! Help is much appreciated!
I should not have to set static routes using the exit ethernet ports to accomplish this should I?
Could you give me a simple config to meditate on as this is driving me nuts!! Help is much appreciated!
Comments
-
Darthn3ss Member Posts: 1,096i don't think you would, since the router would already know about each subnet.. but i'll test it for you.Fantastic. The project manager is inspired.
In Progress: 70-640, 70-685 -
networker050184 Mod Posts: 11,962 ModDid you set the default gateway on the hosts?An expert is a man who has made all the mistakes which can be made.
-
Darthn3ss Member Posts: 1,096i just did this, worked fine.
Router#sh run Building configuration... Current configuration: ! version 12.0 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Router ! ! ip subnet-zero ! ! ! ! interface Ethernet0 ip address 192.168.1.1 255.255.255.252 no ip directed-broadcast ! interface Ethernet1 ip address 192.168.2.1 255.255.255.252 no ip directed-broadcast ! interface Serial0 no ip address no ip directed-broadcast no ip mroute-cache shutdown ! interface Serial1 no ip address no ip directed-broadcast shutdown ! ip classless ! ! line con 0 transport input none line aux 0 line vty 0 4 ! end
configured each host on the appropriate subnet, with the defualt gateway the address of the interface its attached to...
computers config
PC1 -
IP: 192.168.1.2
Subnet Mask: 255.255.255.252
Default Gateway: 192.168.1.1
PC2 -
IP: 192.168.2.2
Subnet Mask: 255.255.255.252
Default Gateway: 192.168.2.1
i can ping between each host.
routing table:Router#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o - ODR Gateway of last resort is not set 192.168.1.0/30 is subnetted, 1 subnets C 192.168.1.0 is directly connected, Ethernet0 192.168.2.0/30 is subnetted, 1 subnets C 192.168.2.0 is directly connected, Ethernet1
Fantastic. The project manager is inspired.
In Progress: 70-640, 70-685 -
sprkymrk Member Posts: 4,884 ■■■□□□□□□□thefear78 wrote:is can I have two hosts directly connected to two seperate ethernet ports and 'talk' to each other?
I should not have to set static routes using the exit ethernet ports to accomplish this should I?
Could you give me a simple config to meditate on as this is driving me nuts!! Help is much appreciated!
The router itself is aware of directly connected networks, so does not need static routes for these. Depending on the routing protocol in use, it is aware of other networks not directly connected (say several hops away). A static route would be used for special circumstances usually.All things are possible, only believe.