[Xorp-hackers] Question on remove interface error
Ben Greear
greearb at candelatech.com
Fri Aug 29 11:07:02 PDT 2008
For some reason, my logic to remove interface config from xorp
is failing. I'm not sure why yet, but in the end, I have this
in one of the routers. The kernel no longer has most of these interfaces,
which is why they are <DISABLED>, I assume.
root at wiser-2> show interfaces
2.3.2/2.3.2: Flags:<BROADCAST,MULTICAST> mtu 1500 speed unknown
inet 10.2.3.2 subnet 10.2.3.0/24 broadcast 10.2.3.255 <DISABLED>
physical index 136
ether 0:d0:a8:a5:9d:77
2.5.2/2.5.2: Flags:<BROADCAST,MULTICAST> mtu 1500 speed unknown
inet 10.2.5.2 subnet 10.2.5.0/24 broadcast 10.2.5.255 <DISABLED>
physical index 132
ether 0:13:de:5a:d2:c5
2.8.2/2.8.2: Flags:<BROADCAST,MULTICAST> mtu 1500 speed unknown
inet 10.2.8.2 subnet 10.2.8.0/24 broadcast 10.2.8.255 <DISABLED>
physical index 128
ether 0:4f:10:29:ad:cd
2.9.2/2.9.2: Flags:<BROADCAST,MULTICAST> mtu 1500 speed unknown
inet 10.2.9.2 subnet 10.2.9.0/24 broadcast 10.2.9.255 <DISABLED>
physical index 124
ether 0:3d:bd:ad:a5:a
br2/br2: Flags:<ENABLED,BROADCAST,MULTICAST> mtu 1500 speed unknown
inet 10.2.2.2 subnet 10.2.2.0/24 broadcast 10.2.2.255
physical index 67
ether 0:71:8a:89:cd:9a
my_discard/my_discard: Flags:<ENABLED,UNREACHABLE> mtu 0 speed unknown
physical index 0
root at wiser-2>
But, when I try to remove one of them (2.9.2), I get errors about 2.3.2
and 2.9.2 is not removed.
This might be because of my own modifications, but if someone has any
ideas, they are welcome!
[root at wiser-2 lanforge]# xorpsh -c configure -c "delete protocols igmp interface 2.9.2" -c "delete protocols pimsm4 interface 2.9.2" -c "delete plumbing mfea4 interface 2.9.2" -c "delete protocols ospf4 area 0.0.0.0 interface 2.9.2" -c "delete interfaces interface 2.9.2" -c commit -c exit -c exit
Welcome to XORP on wiser-2
root at wiser-2> configure
Entering configuration mode.
There are no other users in configuration mode.
[edit]
root at wiser-2# delete protocols igmp interface 2.9.2
Deleting:
2.9.2 {
vif "2.9.2" {
}
}
OK
[edit]
root at wiser-2# delete protocols pimsm4 interface 2.9.2
Deleting:
2.9.2 {
vif "2.9.2" {
dr-priority: 125
}
}
OK
[edit]
root at wiser-2# delete plumbing mfea4 interface 2.9.2
Deleting:
2.9.2 {
vif "2.9.2" {
}
}
OK
[edit]
root at wiser-2# delete protocols ospf4 area 0.0.0.0 interface 2.9.2
Deleting:
2.9.2 {
vif "2.9.2" {
address 10.2.9.2 {
}
}
}
OK
[edit]
root at wiser-2# delete interfaces interface 2.9.2
Deleting:
2.9.2 {
vif "2.9.2" {
address 10.2.9.2 {
prefix-length: 24
}
}
}
OK
[edit]
root at wiser-2# commit
Commit Failed
102 Command failed Interface error on 2.3.2: interface not recognized[edit]
root at wiser-2# exit
ERROR: There are uncommitted changes.
Use "commit" to commit the changes, or "exit discard" to discard them.
root at wiser-2# exit
ERROR: There are uncommitted changes.
Use "commit" to commit the changes, or "exit discard" to discard them.
root at wiser-2# [root at wiser-2 lanforge]#
--
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc http://www.candelatech.com
More information about the Xorp-hackers
mailing list