Mac OS X looses static routes when it is rebooted. To preserve the static route on mac we would need to create a startup script which adds your static route upon system startup. The following steps will help in achieving this. I found neither of the other two static route hints were working for me. Adding the route to /etc/rc.local failed to ever actually add the route. I was adding my route manually without a problem, so figured the trouble adding this at boot was related to the networking. Static routes basically tells the Cisco IOS of which next hop router or the exit interface on the local router that the traffic for a particular host or network needs to be passed to. To add a Static Route in cisco ios based switches and routers the following is the command syntax.
To totally unlock this section you need to Log-in
To configure a static ARP mapping, issue the arp ip-address hardware-address type alias from the global configuration mode of the router. This command installs a permanent entry in the ARP table of the router, while dynamically learned entries are either refreshed or aged out.
Login
Well this is most of the time easy but useful when need and you can’t remind the command you have to use to add a static route in a Mac OS X installation.
Open fist the terminal session. Use the following command:
You have to enter your password.
To delete a route you have to use the following command:
To view you route table on you Mac you use the following command:
Add a startup item (to avoid doing the above command every reboot):
Create a file called AddRoutes (Note: same as the folder name).
Then create a file StartupParameters.plist:
Then change permissions:
Reboot your computer. The magic school bus explores the ocean software for mac. Verify with netstat -nr.
There are two types of routing in networking, Dynamic routing and Static routing. In dynamic routing routing protocols are configured which automatically add different routes to the routers routing table, whereas static routing is the process of manually adding routing paths to the router’s routing table by network administrator/network engineer.
Static routing is done in networks which are not complex where dynamic routing is the best choice for large and complex networks.
Static Routing:
By default any router can direct or send packets to the subnets which are directly connected to its interfaces (that have an up and up status). If we want router1 to send packets to a subnet which is not directly connected or not in the routing table then we will have to add that subnet as a static route.
By adding a static route, a router can be told how to send or forward packets to the subnets that are not directly attached.
We will demonstrate adding static routes with the help of two routers, router R1 and router R2, and three subnets 12.0.0.0, 1.0.0.0 and 2.0.0.0 . Wilcom embroidery studio free download.
Mac Route CommandBasic configuration of R1:
You should note that when connecting two routers through serial cable, the serial interface of one router must be configured as DCE(Data Communication Equipment). DCE interface provides the clocking to the routers connected through it. We have explained the functionality of DCE and DTE in more details in how to set clock rate on Cisco router.
Checking Routing Table of router R1:
Routing table of R1 shows that subnets 1.0.0.0 and 12.0.0.0 are directly connected and can be pinged but subnet 2.0.0.0 cannot be accessed as it is directly connected to R2 and not to R1. If we want R1 to forward packets to subnet 2.0.0.0 then we need to configure a static route.
Basic Configuration of R2:How To Add A Static Route For Mac 2017Check Routing Table of router R2:
Routing table of R2 shows that subnets 2.0.0.0 and 12.0.0.0 are directly connected and can be pinged but subnet 1.0.0.0 cannot be accessed as it is directly connected to R1 and not to R2. If we want R2 to forward packets to subnet 2.0.0.0 then we need to configure a static route.
Configuring Static Route on R1:
Notice the “S” in R1 routing table, it denotes static route, 2.0.0.0/8 is the network which is accessible through 12.1.1.2. R1 will forward al the packets intended for 2.0.0.0 network to its next hop address which is 12.1.1.2.
Configuring Static Route on R2:
Notice the “S” in R2 routing table, it denotes static route, 1.0.0.0/8 is the network which is accessible through 12.1.1.1. R2 will forward al the packets intended for 1.0.0.0 network to its next hop address which is 12.1.1.1.
For verification you can ping 1.1.1.1 from router R2 and 2.2.2.2 from router R1.
If you do have any questions related to configuring Static Routes on a Cisco router, do ask in comments.
Recommended For You:Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |