How to remove vlan and subinterface

Unanswered Question
Aug 29th, 2007

Der all,

i have cisco 7613 router

i want to remove following config from configuration

interface Vlan2

no ip address

!

interface Vlan200

no ip address

and

sh int description

Interface Status Protocol Description

Vl1 admin down down

Vl2 down down

Vl200 down down

Gi1/0/0 down down

Gi1/0/1 up up

Gi1/0/1.200 deleted down

Gi1/0/1.300 deleted down

Pl. guide

is there any method to remove all config by single command

Regards

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.7 (3 ratings)
Loading.
nambi_gct Wed, 08/29/2007 - 23:34

You can use "no interface range vlan 12 , vlan 200".You can also consider "configure replace" command in some situations.BUT PLEASE MAKE SURE THAT YOU TRY OUT THESE COMMANDS IN LAB ENVIRONMENT BEFORE USING THEM IN PRODUCTION NETWORK.

mohammedmahmoud Thu, 08/30/2007 - 02:02

Hi,

In addition, to completely remove the interfaces shown as deleted you'll have to reload the router.

HTH,

Mohammed Mahmoud.

mahesh-gohil Thu, 08/30/2007 - 02:35

Thanks

and pl. tell me how to set router to its default config.

means whatever config change I have done in lab setup ..i want to come back to its default startup config

Regards

Anand Narayana Thu, 08/30/2007 - 02:43

if you wanted to make your router to factory default settings, then type "erase startup-config" this will erase all the configurations on the router & brings you to the factory default settings.

mahesh-gohil Thu, 08/30/2007 - 02:44

when i am trying this command on 3750 switch it show

#no interface range vlan 100

% "No" version of this command not supported for range 1.

% Command will not be applied to any of the ranges.

how can I remove vlan from this switch

regards

Mahesh

mohammedmahmoud Thu, 08/30/2007 - 02:53

Hi,

Use no interface vlan 100, and also remove the VLAN itself if not needed either via the vlan database or global configuration mode, and to completely reset the switch to the default setting, if the switch was a VTP server or client then you'll also have to delete the vlan.dat file from the flash.

HTH,

Mohammed Mahmoud.

Actions

This Discussion