Tuesday, July 15, 2008

You're In Trouble(shooting) Now!



Today, we are in trouble, troubleshooting mode that is! Juniper routers allow multiple IP addresses to be applied to a single, physical interface. What this mean is, if you issued the command set unit 100 family inet address 10.10.10.21.122/24 from the edit interfaces fe-2/0/1 hierarchy and then realized it was incorrect you would need to delete that entry before adding a new one. Otherwise, fe-2/0/1 would have two addresses when you really only wanted one!



Addresses are NOT overridden per logical unit, they are simply added to the logical unit. Here is an example of our double jeopardy:

[edit interfaces fe-2/0/1]

root@routername#show

vlan-tagging;

unit 100 {

vlan-id 100;

family inet {

address 10.10.10.21.122/24

address 10.10.10.21.122/27

}

}



In the above example, /24 is the incorrect mask and /27 is what we need. you can use the delete set unit 100 family inet address 10.10.10.21.122/24 command to correct this.

Note: you can also use the rename command like this: rename address 10.10.10.21.122/24 to address 10.10.10.21.122/27

No comments: