cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1441
Views
0
Helpful
7
Replies

2811 simple script not working Advice please

1885
Level 1
Level 1

We just started working with Cisco routers and switches in our learning lab. (school)

We want to get a 2811 Router to do something simple.  Just route two private networks 192.168.1.1/24 and 192.168.2.1/24

Our script runs in Packettracer 7.1 but not on the actual router.

 

Here is the script we are using with level 1 switches connected and static ip addresses.

 

Router#erase startup-config 
Router#enable 
Router#configure terminal 
Router(config)#interface FastEthernet 0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown 

Router(config)#interface fastEthernet 0/1
Router(config-if)#ip address 192.168.2.1 255.255.255.0
Router(config-if)#no shutdown 

Router#show ip interface brief
Interface              IP-Address      OK? Method Status                Protocol 
FastEthernet0/0        192.168.1.1     YES manual up                    down 
FastEthernet0/1        192.186.2.1     YES manual up                    down 
Vlan1                  unassigned      YES unset  administratively down down

This should work but it doesn't .  Any ideas?  We also installed new firmware.

1 Accepted Solution

Accepted Solutions

1885
Level 1
Level 1

This solved the simple problem. 

ip route 192.168.0.0 255.255.255.0 192.168.1.0 
ip route 192.168.1.0 255.255.255.0 192.168.0.0 

Thank You!

 

R1#show running-config 
Building configuration...
Current configuration : 1168 bytes
Last configuration change at 14:03:12 UTC Thu Dec 7 2017
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
! 
hostname R1 
! 
boot-start-marker 
boot-end-marker 
no aaa new-model 
dot11 syslog 
ip source-route 
ip cef 
no ipv6 cef 
multilink bundle-name authenticated 
voice-card 0 
crypto pki token default removal timeout 0 
license udi pid CISCO2811 sn FTX1107A4JP 
redundancy 
interface FastEthernet0/0 
ip address 192.168.0.1 255.255.255.0 
duplex auto 
speed auto 
interface FastEthernet0/1 
ip address 192.168.1.1 255.255.255.0 
duplex auto 
speed auto 
\ 
interface Serial0/0/0 
no ip address 
shutdown 
clock rate 125000 

interface Serial0/0/1 
no ip address 
shutdown 
clock rate 125000 

ip forward-protocol nd 
no ip http server 
no ip http secure-server 
ip route 192.168.0.0 255.255.255.0 192.168.1.0 
ip route 192.168.1.0 255.255.255.0 192.168.0.0 

control-plane 
mgcp profile default 

line con 0 
line aux 0 
line vty 0 4 
login 
transport input all 
scheduler allocate 20000 1000 
end 

View solution in original post

7 Replies 7

Hi @1885

 What exactly is not working? 

As per your config, you assigned IP address to two interface on the router, right. Two different network. This is correct for a router. Now, you router is able to pass traffic from network 192.168.1.0/25 to 192.168.2.0/24 and vice-versa.

 What are you trying to accomplish from here?

 

 

-If I helped you somehow, please, rate it as useful.-

This script did not work.  I need to assume there is something wrong with the router.

Thanks for the lines.

1885 (aka Craig)

Alright. Try to explain what is not work. I mean, are you trying to ping the router and it is not responding? What are you trying to do and is not working? Maybe I can help you if you explain the problem.

 

 

 

 

 

-If I helped you somehow, please, rate it as useful.-

Julio E. Moisa
VIP Alumni
VIP Alumni

Hi

What is the purpose of your script? I see the changes have been applied, now the interfaces are up down it looks like a layer 2 problem, it could be cable or interface. 

Could you please provide details about the objective of this configuration?

Thank you in advance. 




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

Thank you for the post.

All we are trying to do is ping across router.

Right now we have the 2811 with level 1 switches on each side.

From node 192.168.1.2/24 to  ndoe 192.168.2.2/24 

We will not be able to work on this until Wdnesday 12/6/17 

Thank You

I am the student in question, and there has been a (not so) slight change.

We (I) hooked up the router to the "real world" (the room), and i was able to ping everything on our network from the router's CLI interface. I also swapped routers and the router is definitely not the issue, somehow the data needs to go "through"the router.

 

The original (and current) set up is a few computers hooked up to a Cisco 24-port switch (we'll have to check the model tomorrow).  Only one of the said computers is actually powered on, which is also the computer which i have hooked up via serial to the router's console port.  The switch is not programmed but indeed works.

 

The switch is set up with a crossover cable going from GigabitEthernet 0/1 on the switch to FastEthernet 0/1, while the real world connection is on FastEthernet 0/0 on the 2811.

 

Hope this helps.

1885
Level 1
Level 1

This solved the simple problem. 

ip route 192.168.0.0 255.255.255.0 192.168.1.0 
ip route 192.168.1.0 255.255.255.0 192.168.0.0 

Thank You!

 

R1#show running-config 
Building configuration...
Current configuration : 1168 bytes
Last configuration change at 14:03:12 UTC Thu Dec 7 2017
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
! 
hostname R1 
! 
boot-start-marker 
boot-end-marker 
no aaa new-model 
dot11 syslog 
ip source-route 
ip cef 
no ipv6 cef 
multilink bundle-name authenticated 
voice-card 0 
crypto pki token default removal timeout 0 
license udi pid CISCO2811 sn FTX1107A4JP 
redundancy 
interface FastEthernet0/0 
ip address 192.168.0.1 255.255.255.0 
duplex auto 
speed auto 
interface FastEthernet0/1 
ip address 192.168.1.1 255.255.255.0 
duplex auto 
speed auto 
\ 
interface Serial0/0/0 
no ip address 
shutdown 
clock rate 125000 

interface Serial0/0/1 
no ip address 
shutdown 
clock rate 125000 

ip forward-protocol nd 
no ip http server 
no ip http secure-server 
ip route 192.168.0.0 255.255.255.0 192.168.1.0 
ip route 192.168.1.0 255.255.255.0 192.168.0.0 

control-plane 
mgcp profile default 

line con 0 
line aux 0 
line vty 0 4 
login 
transport input all 
scheduler allocate 20000 1000 
end