cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1809
Views
0
Helpful
4
Replies

Cisco 871 not routing

Paul Smith
Level 1
Level 1

Hi Guys,

I have configured a router to route from a Class C network to a Class A network, although I just cant get a ping from one to the other. I can see the routing table and I only want to use directly connected routes and I have not enabled any protocols. Here is my running config and my routing table, am I missing something?

Thanks,

Christian#sh run

Building configuration...

Current configuration : 1590 bytes

!

version 12.3

no service pad

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname Christian

!

boot-start-marker

boot-end-marker

!

enable secret 5 $1$Kwwh$fbu5fbsjV8VqiKBbQ8dCP0

enable password enablepassword

!

username paul privilege 15 password xxx

username pauladm privilege 15 password 0 xxx

username name

no aaa new-model

ip subnet-zero

ip cef

!

!

!

!

ip name-server 192.168.2.200

ip ips po max-events 100

no ftp-server write-enable

!

!

!

!

!

!

!

interface FastEthernet0

no ip address

!

interface FastEthernet1

no ip address

shutdown

!

interface FastEthernet2

switchport access vlan 2

no ip address

!

interface FastEthernet3

no ip address

shutdown

duplex half

speed 10

!

interface FastEthernet4

no ip address

shutdown

duplex auto

speed auto

!

interface Vlan1

ip address 192.168.2.100 255.255.255.0

!

interface Vlan2

ip address 10.1.1.100 255.0.0.0

!

ip default-gateway 10.1.1.1

ip classless

!

!

ip http server

ip http authentication local

ip http secure-server

!

cdp timer 59

cdp holdtime 179

!

!

control-plane

!

banner exec ^CWelcome to the inner sanctum.^C

banner login ^C Please proceed if you are worthy.^C

banner motd ^CPaul's Cisco 871 Router.^C

!

line con 0

exec-timeout 120 20

login local

no modem enable

transport preferred all

transport output all

line aux 0

transport preferred all

transport output all

line vty 0 4

privilege level 15

password vtypassword

login local

transport preferred all

transport input telnet ssh

transport output all

!

scheduler max-task-time 5000

end

Christian#sh ip route

Codes: C - connected, S - static, 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

       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

       ia - IS-IS inter area, * - candidate default, U - per-user static route

       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

C    10.0.0.0/8 is directly connected, Vlan2

C    192.168.2.0/24 is directly connected, Vlan1

4 Replies 4

srikanth ath
Level 4
Level 4

Whats your setup and requirement: if you are looking for Intervlan-routing. please configure as below

interface FastEthernet2

no switchport access

no switch port access vlan2

no ip address

no shut

interface FastEthernet2.1

switchport mode trunk

switchport encapsulation dot1q 1  ---> where 1 is a vlan-id

interface FastEthernet2.2

switchport mode trunk

switchport encapsulation dot1q 2

exit

interface FastEthernet2

no shut

Please rate helpful posts,

Regards,

srikanth

Thanks Srikanth,

Thanks to your advice, I can now see that I need to enable vlan routing, as the Cisco 871 router does not have any layer 3 interfaces except for the 'WAN' port (FE4), which I am not using. The problem I face now is that I cant 'switchport access trunk' on my layer 2 ports (FE0 and FE2) because they will lose their IP addresses. They are both set with 'switchport access vlan' (Fe0 Vlan1 and Fe2 Vlan2). I f I switchport to trunk and then dot1q, I lose the IP addresses on the interfaces right?

johnlloyd_13
Level 9
Level 9

Hi,

Kindly do the following:

871(config)vlan 2

871(config)int f0

871(config-if)switchport access vlan 1

871(config-if)switchport mode access

Plug a host on the switch port configured with the same subnet.

Sent from Cisco Technical Support iPad App

fb_webuser
Level 6
Level 6

if you have tried everything else then remove"ip default-gateway"

---

Posted by WebUser Varun Uniyal from Cisco Support Community App

Review Cisco Networking products for a $25 gift card