dili pwede bro
advisable mag static route ka bai
what brand of router are you using?
ani ang config niya mga bro. mail server <----> router(10.190.1.254 CISCO) <---->switch <----->router(192.168.0.1 3COM) <------> pc(192.168.0.2)
mao ni ako mga router mga bro
configure your NAT sa 3COM... kung pwede lang "Port Forwarding sa CISCO."
now you can! as suggested by juantamad, you need to use a secondary ip address on the cisco router or on the 3com switch.
here's a sample config i made to test this scenario to let you know it's possible.
mail server (10.190.1.1) <----> cisco router(10.190.1.254/192.168.0.254 secondary) <----> switch
switch <----> 3com router(192.168.0.1) <----> pc(192.168.0.2)
************
cisco router
************
the cisco router has been configured with a secondary ip address that is within the same subnet as the 3com router (192.168.0.254) while leaving the primary ip address (10.190.1.254) untouched.
Rack1R4#sh run int e0
Building configuration...
Current configuration : 116 bytes
!
interface Ethernet0
ip address 192.168.0.254 255.255.255.0 secondary
ip address 10.190.1.254 255.255.255.0
end
this is the routing table of the cisco router
Rack1R4#sh ip route
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 1 subnets
C 10.190.1.0 is directly connected, Ethernet0
C 192.168.0.0/24 is directly connected, Ethernet0
test connectivity with the 3com router
Rack1R4#ping 192.168.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/45/120 ms
test connectivity with the pc behind the 3com router
Rack1R4#ping 192.168.0.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/5/8 ms
test connectivity with the mail server
Rack1R4#ping 10.190.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.190.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/42/104 ms
********************************
Assuming this is the 3com router
********************************
NOTE: i only have a cisco router to test, but the logic would still be the same for the 3com.
on the 3com router, you need to specify a static route to the 10.190.1.0/24 network pointing to the secondary ip address of the cisco router (192.168.0.254)
this is what it looks like on a cisco router
ip route 10.190.1.0 255.255.255.0 192.168.0.254
this is the ip address configured on the ethernet interface
Rack1R5#sh run int e0
Building configuration...
Current configuration : 80 bytes
!
interface Ethernet0
ip address 192.168.0.1 255.255.255.0
end
this is the routing table of the assumed 3com router
take note of where the 10.190.1.0/24 network is pointing
Rack1R5#sh ip route
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 1 subnets
S 10.190.1.0 [1/0] via 192.168.0.254
C 192.168.0.0/24 is directly connected, Ethernet0
Rack1R5#
test connectivity with the cisco's secondary ip address
Rack1R5#ping 192.168.0.254
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.254, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/31/128 ms
test connectivity with the cisco's primary ethernet interface
Rack1R5#ping 10.190.1.254
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.190.1.254, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/10/12 ms
test connectivity with the mail server
Rack1R5#ping 10.190.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.190.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/68/152 ms
***********
mail server
***********
C:\>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 10.190.1.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.190.1.254
C:\>ping 192.168.0.2 (PC)
Pinging 192.168.0.2 with 32 bytes of data:
Reply from 192.168.0.2: bytes=32 time=7ms TTL=254
Reply from 192.168.0.2: bytes=32 time=7ms TTL=254
Reply from 192.168.0.2: bytes=32 time=7ms TTL=254
Reply from 192.168.0.2: bytes=32 time=7ms TTL=254
Ping statistics for 192.168.0.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 7ms, Maximum = 7ms, Average = 7ms
C:\>tracert 192.168.0.2
Tracing route to 192.168.0.2 over a maximum of 30 hops
1 2 ms 2 ms 2 ms 10.190.1.254
2 7 ms 7 ms 7 ms 192.168.0.2
Trace complete.
*******************
PC IP configuration
*******************
C:\>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.0.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
test connectivity with mail server
C:\>ping 10.190.1.1
Pinging 10.190.1.1 with 32 bytes of data:
Reply from 10.190.1.1: bytes=32 time=108ms TTL=254
Reply from 10.190.1.1: bytes=32 time=94ms TTL=254
Reply from 10.190.1.1: bytes=32 time=37ms TTL=254
Reply from 10.190.1.1: bytes=32 time=97ms TTL=254
Ping statistics for 10.190.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 37ms, Maximum = 108ms, Average = 84ms
C:\>tracert 10.190.1.1
Tracing route to 10.190.1.1
over a maximum of 30 hops:
1 3 ms 3 ms 3 ms 192.168.0.1
2 12 ms 6 ms 5 ms 10.190.1.254
3 99 ms 12 ms 183 ms 10.190.1.1
Trace complete.
or you have the option to use the cisco router (192.168.0.254) as the default gateway instead which saves you time and bandwidth
C:\>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.0.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.254
C:\>ping 10.190.1.1
Pinging 10.190.1.1 with 32 bytes of data:
Reply from 10.190.1.1: bytes=32 time=83ms TTL=254
Reply from 10.190.1.1: bytes=32 time=30ms TTL=254
Reply from 10.190.1.1: bytes=32 time=54ms TTL=254
Reply from 10.190.1.1: bytes=32 time=125ms TTL=254
Ping statistics for 10.190.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 30ms, Maximum = 125ms, Average = 73ms
C:\>tracert 10.190.1.1
Tracing route to 10.190.1.1
over a maximum of 30 hops:
1 2 ms 2 ms 2 ms 10.190.1.254
2 49 ms 9 ms 8 ms 10.190.1.1
Trace complete.
i hope this made things clear
regards,
ridney
i forgot to mention that the cisco and 3com routers should share the same vlan if you're implementing it on the switch.
mga bro, thanks kaayo it helps jud inyo mga posts especially ridney og juantamad and all of you guys thank you.
Similar Threads |
|