Link to home
Start Free TrialLog in
Avatar of Savvis
Savvis

asked on

Sub Interface

I failed to configure subinterfaces (VLANS) on the physical F0/0 of a Cisco 2600 router.
It would'nt take the "encapsualtion" and "ip address" commands:

Router#config t
Router(config)#int f0/0.1
Router(config-subif)#encapsulation ?
% Unrecognized command
Router(config-subif)#encapsulation dot1q10
                      ^
% Invalid input detected at '^' marker.

Router(config-subif)#ip address 192.168.2.254 255.255.255.0
% Configuring IP routing on a LAN subinterface is only allowed if that
subinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q,
or ISL vLAN.

Please help
Thank you very much
Avatar of Hodepine
Hodepine
Flag of Norway image

Apart from a small typo, you're doing it right, and the typo is in your second line, while the first line indicates the router doesn't support dot1q encapsulation.

The correct config is:

Interface fa 0/0.1
encapsulation dot1q 10 (notice the space between dot1q and 10)
ip address 192.168.2.254 255.255.255.0

If this doesn't work (and it seems it won't), do a show version so we can see which software you have. The 2600 SHOULD support dot1q trunking, so I suspect it's a software issue.
Avatar of Don Johnston
I suspect that your problem is that the IOS version or feature set doesn't support ethernet trunking.

Wander over here:

http://tools.cisco.com/ITDIT/CFN/jsp/index.jsp

Select "Search by feature"
Then enter "trunking" in the search box.
Then add "IEEE 802.1Q VLAN Trunking" and click "continue".

You can then select your platform and find out what IOS version and feature set you'll need.


Avatar of simo471
simo471

hit a question mark after you enter sub interface mode, and post the output
Avatar of Savvis

ASKER

Hi Hodepine,

It doesn't take "encapsulation" command:
Router#config t
Router(config)#int fa0/0.1
Router(config-subif)#encapsulation ?
% Unrecognized command
Router#sh ver
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-I-M), Version 12.3(22), RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by cisco Systems, Inc.
Compiled Wed 24-Jan-07 16:48 by ccai
Image text-base: 0x80008098, data-base: 0x80CEA424

ROM: System Bootstrap, Version 12.2(10r)1, RELEASE SOFTWARE (fc1)
ROM: C2600 Software (C2600-I-M), Version 12.3(22), RELEASE SOFTWARE (fc2)

Router uptime is 6 minutes
System returned to ROM by power-on
System image file is "flash:c2600-i-mz.123-22.bin"

cisco 2621 (MPC860) processor (revision 0x00) with 45056K/4096K bytes of memory.
Processor board ID JAD064209D3 (2349525347)
M860 processor: part number 0, mask 49
Bridging software.
X.25 software, Version 3.0.0.
2 FastEthernet/IEEE 802.3 interface(s)
1 Serial network interface(s)
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read/Write)
         
Configuration register is 0x2142

Thanks
Ok, that explains it. You need minimum IP PLUS feature set, while you only have IP.

Upgrade your IOS and you're good to go.
And you're config-register is by the way set to boot without loading config, I'd change that back to 0x2102.
Yeah... That's what I said.
Avatar of Savvis

ASKER

Hi Hodepine,

What IOS should I use to get IP PLUS and do this router has enough memory for the upgrade:

Router#sh flash
System flash directory:
File  Length   Name/status
  1   7738720  c2600-i-mz.123-22.bin  
[7738784 bytes used, 9038428 available, 16777212 total]
16384K bytes of processor board System flash (Read/Write)

Router#dir
Directory of flash:/
1  -rw-     7738720                    <no date>  c2600-i-mz.123-22.bin
16777212 bytes total (9038428 bytes free)

Thank You
I'm afraid you either have to upgrade your flash or downgrade to version 12.2:

12.2.46:

IP PLUS  
c2600-is-mz.122-46a.bin  
Release Date: 01/Aug/2007
Size: 10085.63 KB  (10327680 bytes)
Minimum Memory: DRAM:48 MB  Flash:16 MB

12.3.26:

IP PLUS  
c2600-is-mz.123-26.bin  
Release Date: 18/Mar/2008
Size: 17646.56 KB  (18070068 bytes)
Minimum Memory: DRAM:64 MB  Flash:32 MB  

None of the 12.3 IP PLUS images fits in 16 MB flash, they're all a bit too large.

What is the best way to go? Well, downgrading to 12.2 would be less of a fuss, but if you need functionality present only in 12.3 you'll need more flash memory.

From the setup I've seen so far, I'm guessing you'll do fine with 12.2, but that's just a guess, I don't know what else you want to do on it.
Correction:

There are a couple of IP PLUS BASIC images you could get. They won't give you all the functionality of IP PLUS, but most likely you won't need it:

IP PLUS BASIC W/O SWITCHING  
2600-is4-mz.123-26.bin  
Release Date: 18/Mar/2008
Size: 15857.36 KB  (16237928 bytes)
Minimum Memory: DRAM:64 MB  Flash:16 MB  

IP PLUS BASIC W/O HD ANALOG/AIM ATM/VOICE  
c2600-is5-mz.123-26.bin  
Release Date: 18/Mar/2008
Size: 15150.63 KB  (15514236 bytes)
Minimum Memory: DRAM:64 MB  Flash:16 MB  
 
 
And yet another correction:

The "IP PLUS BASIC W/O SWITCHING" won't do, so only the second option will work (if other features you need are present).
Avatar of Savvis

ASKER

Hi Hodepine,
I downloaded and upgraded c2600-is5-mz.123-26.bin, still doesn't work, the router doesn't recognize
"encapsulation" command:

Router#copy tftp flash
Address or name of remote host []? 192.168.2.7
Source filename []? c2600-is5-mz.123-26.bin
Destination filename [c2600-is5-mz.123-26.bin]?
Accessing tftp://192.168.2.7/c2600-is5-mz.123-26.bin...
Erase flash: before copying? [confirm]
Erasing the flash filesystem will remove all files! Continue? [confirm]
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased
Erase of flash: complete
Loading c2600-is5-mz.123-26.bin from 192.168.2.7 (via FastEthernet0/0): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!........................................................................................................................................................................!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 15514236 bytes]

Verifying checksum...  OK (0xF4A2)
15514236 bytes copied in 98.316 secs (157800 bytes/sec)
Router#
Router#
Router#sh ver
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-I-M), Version 12.3(22), RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by cisco Systems, Inc.
Compiled Wed 24-Jan-07 16:48 by ccai
Image text-base: 0x80008098, data-base: 0x80CEA424

ROM: System Bootstrap, Version 12.2(10r)1, RELEASE SOFTWARE (fc1)
ROM: C2600 Software (C2600-I-M), Version 12.3(22), RELEASE SOFTWARE (fc2)

Router uptime is 36 minutes
System returned to ROM by power-on
System image file is "flash:c2600-i-mz.123-22.bin"

cisco 2621 (MPC860) processor (revision 0x00) with 45056K/4096K bytes of memory.
Processor board ID JAD064209D3 (2349525347)
M860 processor: part number 0, mask 49
Bridging software.
X.25 software, Version 3.0.0.
2 FastEthernet/IEEE 802.3 interface(s)
1 Serial network interface(s)
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read/Write)
         
Configuration register is 0x2102

Router#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int f0/1.1
Router(config-subif)#encapsulation ?
% Unrecognized command


Do I missed any step?

Thank you

You need to reboot your router.

The router loads the IOS-image from flash to ram during boot up. As you see in your show version:

System image file is "flash:c2600-i-mz.123-22.bin". That's the image it's currently running from ram (even though it says flash, flash is just the storage).

That's your old IP feature set image. Reboot, and it'll load the new IOS.

Just so it's mentioned: When the router boots up it goes through a process with first checking itself (power on self-test/POST), then it checks the configuration register to see how to behave with IOS/config among other things. It defaults to just load the first image it finds in flash. If you have more than one image (which I'm sure you don't since you have a 16 mb flash, and space have been an issue), you might have to specify which image to boot with the boot system command. But again, shouldn't be a problem here, just reboot and you should be fine.
Avatar of Savvis

ASKER

Hi Hodepine,
After reboot it becomes worse, the router complaints:
 "not enough memory in the system to run this image" with the "rommon1 >"promp.
I try to reboot may times but no help.
So I try to fall back to the old old version:
rommnon 1>  IP_ADDRESS=192.168.2.1
                     IP_SUBNET_MASK=255.255.255.0
                     DEFAULT_GATEWAY=192.168.2.7
                    TFTP_SERVER=192.168.2.4
                    TFTP_FILE=c2600-is3x-mz.123-22.bin
                    TFTP_RETRY_COUNT=18
                    TFTP_TIMEOUT:=7200
                    TFTP_CHECKSUM:=Yes
                    FE_PORT=0
                    FE_SPEED_MODE=Auto
                    tftpdnld
the download completed:
Do you wish to continue? y/n:  [n]:  y
.....
Receiving c2600-is3x-mz.123-22.bin from 192.168.2.4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
File reception completed.
Copying file c2600-is3x-mz.123-22.bin to flash.
Erasing flash at 0x60fc0000
program flash location 0x60e50000
rommon 13 > 
System Bootstrap, Version 12.2(10r)1, RELEASE SOFTWARE (fc1)
TAC Support: http://www.cisco.com/tac
Copyright (c) 2002 by cisco Systems, Inc.
C2600 platform with 49152 Kbytes of main memory

program load complete, entry point: 0x80008000, size: 0xe51708
Self decompressing the image : ##################################################################################################################################################################################################################################################### [OK]

Smart Init is enabled
smart init is sizing iomem
  ID            MEMORY_REQ                 TYPE
0000A2          0X00103980 C2600 Dual Fast Ethernet
                0X00098670 public buffer pools
                0X00211000 public particle pools
TOTAL:          0X003ACFF0
If any of the above Memory Requirements are
"UNKNOWN", you may be using an unsupported
configuration or there is a software problem and
system operation may be compromised.
Rounded IOMEM up to: 4Mb.

 Not enough memory in the system to run this image
rommon 1>

Now the router cannot load the IOS, keeps on coming up with the rommnn 1> prompt.

Please help me to restore the IOS.

Thank you.



Avatar of Savvis

ASKER

Hi Hodepine,
That was my mistake, I got the wrong image.
 It boots up OK with this image: c2600-i-mz.123-22.bin (the original one)
I think this router flash is only 16M, not enough to run IP Plus image.
Router#dir flash:
Directory of flash:/
       1  -rw-     7738720                    <no date>  c2600-i-mz.123-22.bin
16777212 bytes total (9038428 bytes free)
Router#sh flash
System flash directory:
File  Length   Name/status
  1   7738720  c2600-i-mz.123-22.bin  
[7738784 bytes used, 9038428 available, 16777212 total]
16384K bytes of processor board System flash (Read/Write)

Regards,

From what I saw in your show version, you have 16 MB of flash and 48 MB of RAM, and yes, that IP PLUS BASIC image needs 64. Didn't notice that when I recommended it, sorry.

Seems like your only option without changing the hardware is downgrading to 12.2:

IP PLUS  
c2600-is-mz.122-46a.bin  
Release Date: 01/Aug/2007
Size: 10085.63 KB  (10327680 bytes)
Minimum Memory: DRAM:48 MB  Flash:16 MB

That image works for you with both flash and RAM.
Avatar of Savvis

ASKER

Hi Hodepine,

I downgrade the router to c2600-is-mz.122-46a.bin , every thing looks good.
I can configure the subinterfaces on the router now
Thank you very much for your expertise and patience

Savvis

That's nice, and you're welcome, it was my pleasure.

Hodepine
Avatar of Savvis

ASKER

Hi Hodepine,

Can we copy the image from the flash to our PC?

Thanks
Yes, with a tftp server.

Install a tftp server on your computer, and do copy flash tftp, and it will ask you about ip address and filename.
Avatar of Savvis

ASKER

Hi Hodepine,

It's great. It works quite well.  Thank you again.

May I ask you another question about PIX subinterfaces ?

I hope you don't mind
ASKER CERTIFIED SOLUTION
Avatar of Hodepine
Hodepine
Flag of Norway image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Savvis

ASKER

Great
Avatar of Savvis

ASKER

Thanks