Question Locked

Cisco 831 router configuration help

0 helpful
13 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

In existing LAN 10.10.10.1 255.255.255.0 everything works fine, but when i trying to add router to make one more lan inside I have a problem

router config has:

Ethernet0 inside 192.168.1.1 255.255.255.0
Ethernet1 outside 10.10.10.155 255.255.255.0

ip route 0.0.0.0 0.0.0.0 10.10.10.1
(10.10.10.1 - routers address)

cisco router pings inside
pings outside
pings internal PC

internal PC which IP address is 192.168.1.2
Pings router
can not ping outside

please help :)

13 replies

by netman1958

What do you have configured as a default gateway on the internal PC which IP address is 192.168.1.2?

by vencrena

ip dhcp excluded-address 192.168.1.1
!
ip dhcp pool amidus
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 193.219.61.11 193.219.61.111
lease 4
!
!
no ip domain lookup
ip ips po max-events 100
no ftp-server write-enable
!
!
!
!
!
!
!
interface Ethernet0
description $ETH-LAN$
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly
!
interface Ethernet1
description $ETH-WAN$
ip address 10.10.10.155 255.255.255.0
ip nat outside
duplex auto
!
interface FastEthernet1
no ip address
duplex auto
speed auto
!

etc..

ip classless
ip route 0.0.0.0 0.0.0.0 10.10.10.1

etc...

by vencrena

Physical Address. . . . . . . . . : 00-08-74-E4-0D-4A
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 193.219.61.11
193.219.61.111

by netman1958

I see in your partial config that the interfaces have their NAT roles defined. What does the rest of your NAT config look like? That is, do you have a line in the config similar to:
"ip nat inside source list 101 interface ethernet 1 overload"?

Also, post your access lists.

by vencrena

this is all cisco 831 configuration, and as you see NAT is empty.

-> sh run

urrent configuration : 1701 bytes
!
version 12.3
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
memory-size iomem 15
no logging buffered
enable password 10adm2g
!
username renatas privilege 15 secret 5 $1$fHdz$7.Pq2DJcz9qRiTTgtvQb9/
no aaa new-model
ip subnet-zero
!
ip dhcp excluded-address 192.168.1.1
!
ip dhcp pool amidus
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 193.219.61.11 193.219.61.111
lease 4
!
!
no ip domain lookup
ip ips po max-events 100
no ftp-server write-enable
!
!
!
!
!
!
!
interface Ethernet0
description $ETH-LAN$
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly
!
interface Ethernet1
description $ETH-WAN$
ip address 10.10.10.155 255.255.255.0
ip nat outside
duplex auto
!
interface FastEthernet1
no ip address
duplex auto
speed auto
!
interface FastEthernet2
no ip address
duplex auto
speed auto
!
interface FastEthernet3
no ip address
duplex auto
speed auto
!
interface FastEthernet4
no ip address
duplex auto
speed auto
!
ip classless
ip route 0.0.0.0 0.0.0.0 10.10.10.1
!
ip http server
ip http authentication local
ip http secure-server
!
!
!
!
control-plane
!
!
line con 0
password xg10@2s
login
no modem enable
transport preferred all
transport output all
line aux 0
transport preferred all
transport output all
line vty 0 4
exec-timeout 120 0
login local
transport preferred all
transport input all
transport output all
!
scheduler max-task-time 5000
end

by netman1958

I just re-read your original post and compared it to this config and realized that I didn't understand what you were trying to do before. I think I've got it now. I think this represents your topology:

192.168.1.0/24 -> Cisco 831 -> 10.10.10.0/24 -> other router->Internet

I that is correct then I suspect that the other router (the one closest to the Internet) is not configured to perform NAT for the 192.168.1.0 subnet. Add these lines to the config on your Cisco and let me know the result:
access-list 101 permit ip 192.168.1.0 0.0.0.255 any
ip nat inside source list 101 interface Ethernet1 overload

Note, this setup will have you "double NATing" the traffic from the 192.168.1.0 subnet, but go ahead and try it. If it works I will give you some options to avoid the "double-NATing".

by vencrena

yes my topology is:

192.168.1.0/24 -> Cisco 831 -> 10.10.10.0/24 -> other router->Internet
cisco - 192.168.1.1
other router 10.10.10.1
other routers GW: 193.219.160.126
(also i want to mention that I have access to other router to)

ok I wrote these lines as you say, and now I can reach internet. THANKS

now how to avoid double NATing?

by netman1958

is your other router? Do you know if it supports configuring more than 1 network on the LAN? If it doesn't, you could replace the other router completely with the Cisco 831 and configure a secondary ip address on the ethernet 0 interface. Either way, you end up with 1 router instead of 2 and the 1 router supports both subnets.

by netman1958

If your other router supports it would be to remove NAT from the cisco, add a static route on the other router to the cisco for the 192.168.1.0 net(or run RIP if the other router supports it). Then have the other router perform NAT for both subnets.

If the other router can't support one/any of these functions, you could swap places with the routers and let the cisco be the outside router as it can support those functions.

by vencrena

the first router is Belkin (on it is not many what to configure)

other router cisco 831 (was my test enviroment)
I was trying to connect cisco to internet and join my pc to it only for testing purposes.

thanks to you i solveed that problem.

can you explain and tell more about these lines, and their meaning, I will be appreciated.

access-list 101 permit ip 192.168.1.0 0.0.0.255 any
ip nat inside source list 101 interface Ethernet1 overload

by Former member

The workstations at 192.168....cannot ping the outside because your router @ 10.10.10.1 does not know of network 192.168.1.0. Provide the 10.0.0.1 router with a static route to the 192.168.1.0 network via 10.10.10.155.

by netman1958

Those 2 lines tell the router to perform NAT on any traffic that has a source ip address in the 192.168.1.0 subnet and ANY destination ip address. NAT will replace the source ip address with the ip address assigned to the Ethernet 1 interface. The overload option allows more than one translation at a time to use the same ip address.

All of this is necessary because any of the following ip subnets are private as per RFC 1918 and not routable over the internet:
10.0.0.0 ? 10.255.255.255
172.16.0.0 ? 172.31.255.255
192.168.0.0 ? 192.168.255.255

This discussion is closed to new replies.