Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am new to cisco and I just want my computer links to internet.

Status
Not open for further replies.

852

IS-IT--Management
Oct 7, 2001
5
0
0
HK
Dear All,

I have a cisco 2600 router and connect two subnet.

subnet A ------cisco -------subnet B -----to internet

that is, in IP:

10.106.174.x ---10.106.174.253---10.106.159.253---10.106.159.x ===> Internet

In subnet B I can go to internet with a gateway 10.106.159.254

How can I get subnet A also go to internet using the same internet access.

should I use route-map or should I add a access-list?

Thanks a lot !!

Gilbert Ng
gilbertng@hongkong.com

 
Im a little lost here, lets try this. for testing setup a static route on the cisco to point to the internet

ip route 0.0.0.0 0.0.0.0 10.106.159.254

is the internet connection on the router?
show a config minus your passwords.

Jeter@LasVegas.com
J.Fisher CCNA
 
Thanks Fisher,

Let me explain it more.

The cisco 2600 have two ethernet port with IP
10.106.159.253 and 10.106.174.253, it connect to two subnet, one is 10.106.159.x, another is 10.106.174.x

at one side (159 subnet) have a internet access. Now I just want the 174 sunbet also get thourgh the router and go to internet.

have a graph:

Internet
|
|
10.106.159.254
|
|
HUBS----10.106.159.x
|
|
cisco 2600 (as above two ethernet port)
|
|
HUBS ---- 10.106.174.x

Thanks a lot

Gilbert
 
ok, have you tried to setup a gateway of last resort
default-gateway Jeter@LasVegas.com
J.Fisher CCNA
 
are you running Dynamic Routing Protocol or just static routes? If you are running Dynamic you need to include the network number in your protocol.
Example
Router rip
network 172.16.0.0
and any other network that is not in this range.
if you are running static route you need to add a static route to your router.

Good luck
 
Thanks, but I am very very new to this. In the router I see the following, can anyone explain it to me:
I am using cisco 2600, I don't know I have rip or dynamic route protocol or not, I just first came to here on cisco.
Even I don't know how to add a static route on the cisco. Please help me.

---------------------------------------
Current configuration:
!
version 12.0
no service timestamps debug uptime
no service timestamps log uptime
service password-encryption
!
hostname SAMS_Router
!
logging buffered 4096 debugging
enable secret 5 $1$fqHM$sRtne.v/UL/SitbgcqSj21
enable password 7 140713181F13253920
!
no ip subnet-zero
no ip source-route
no ip domain-lookup
!
!
!
interface Ethernet0/0
description SAMS Network IP 10.106.174.X
ip address 10.106.174.254 255.255.255.0
no ip redirects
no ip unreachables
no ip directed-broadcast
no ip proxy-arp
ntp disable
no cdp enable
!
interface Ethernet0/1
description FDBWA Network IP 10.106.159.X
ip address 10.106.159.253 255.255.255.0
ip access-group 101 in
no ip redirects
no ip unreachables
no ip directed-broadcast
no ip proxy-arp
ntp disable
no cdp enable
!
ip classless
!
access-list 101 permit tcp 10.106.159.0 0.0.0.255 10.106.174.0 0.0.0.255 gt 1023
established
access-list 101 permit udp host 10.106.159.1 eq netbios-dgm 10.106.174.0 0.0.0.2
55 eq netbios-dgm
no cdp enable
!
ip classless
!
access-list 101 permit tcp 10.106.159.0 0.0.0.255 10.106.174.0 0.0.0.255 gt 1023
established
access-list 101 permit udp host 10.106.159.1 eq netbios-dgm 10.106.174.0 0.0.0.2
55 eq netbios-dgm
access-list 101 permit tcp host 10.106.159.1 gt 1023 10.106.174.0 0.0.0.255 eq 1
39
access-list 101 permit icmp 10.106.159.0 0.0.0.255 10.106.174.0 0.0.0.255 echo-r
eply
access-list 101 deny ip any any log
no cdp run
!
line con 0
transport input none
line aux 0
line vty 0 4
password 7 0827181D590A041A01
login
!
end
-------------------------------------------------

Really really thanks.

Gilbert Ng
 
ip default-gateway 10.106.159.254

try this Jeter@LasVegas.com
J.Fisher CCNA
 
Hello jeter,

Can you tell me what is the following meaning? It was set by pervious one, I don't know what he do,

access-list 101 permit tcp 10.106.159.0 0.0.0.255 10.106.174.0 0.0.0.255 gt 1023 established
access-list 101 permit udp host 10.106.159.1 eq netbios-dgm 10.106.174.0 0.0.0.255 eq netbios-dgm
access-list 101 permit tcp host 10.106.159.1 gt 1023 10.106.174.0 0.0.0.255 eq 139
access-list 101 permit icmp 10.106.159.0 0.0.0.255 10.106.174.0 0.0.0.255 echo-reply
access-list 101 deny ip any any log
no cdp run

Beside, I will try your suggestion. Thanks a lot.

Gilbert
 
access-list 101 permit tcp 10.106.159.0 0.0.0.255 10.106.174.0 0.0.0.255 gt 1023 established

this means the network of 10.106.159.x and 10.106.174.x will connect via a greater then port 1023 and use established TCP session

access-list 101 permit udp host 10.106.159.1 eq netbios-dgm 10.106.174.0 0.0.0.255 eq netbios-dgm

this is allowing netbios datagrams from 10.106.159.1 to anyone on network 10.106.174.x

access-list 101 permit tcp host 10.106.159.1 gt 1023 10.106.174.0 0.0.0.255 eq 139

Again.. allows the host 10.106.159.1 use a port greater then 1023 to connecto any host 10.106.174.x using port equal to 139 ; this is pretty unique entry

access-list 101 permit icmp 10.106.159.0 0.0.0.255 10.106.174.0 0.0.0.255 echo-reply

This allows any host on the 10.106.159.x to ping any host on 10.106.174.x network

access-list 101 deny ip any any log

This entry is not really needed but they are trying to log exceptions to the list.

MikeS



Find me at
"Diplomacy; the art of saying 'nice doggie' till you can find a rock" Wynn Catlin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top