How to Add and Delete a Static Route on an oCM
- Author: Sierra Wireless
This article describes the commands necessary to add and delete a static route on an oCM.
To add/delete a static route on the oCM, you need to do the following
1. Change to configure mode using the configure command.
2. Show the current static route setup using the show protocols command. e.g.:
4. To add a route enter set protocols static route <new subnet> next-hop <ip-address>. e.g.:
5. Save to the running configuration using the commit command.
6. Save to the flash memory using the save command so that it can be read during boot up.
7. Exit configure mode using the exit command.
1. Change to configure mode using the configure command.
2. Show the current static route setup using the show protocols command. e.g.:
admin@oCM#3. To delete a static route enter: delete protocols static route <subnet>. e.g.:
[edit]
admin@oOCM# show protocols
static {
route 10.8.0.0/12 {
next-hop 10.2.0.1 {
}
}
route 10.16.0.0/12 {
next-hop 10.2.0.1 {
}
}
route 10.32.0.0/12 {
next-hop 10.2.0.1 {
}
}
route 10.48.0.0/12 {
next-hop 10.2.0.1 {
}
}
route 10.64.0.0/12 {
next-hop 10.2.0.1 {
}
}
route 10.58.0.0/16 {
next-hop 10.2.0.254 {
}
}
}
delete protocols static route 10.85.0.0/16
4. To add a route enter set protocols static route <new subnet> next-hop <ip-address>. e.g.:
set protocols static route 10.88.0.0/16 next-hop 10.2.0.254
5. Save to the running configuration using the commit command.
6. Save to the flash memory using the save command so that it can be read during boot up.
7. Exit configure mode using the exit command.