On our system we assign several IP adresses to one of our physical interface. (eth1, eth1:1, & eth1:2) My question is can I set a 'route' for a specific logical interface (eth1:2)? The route command with accept the device name eth1:2 but when I display all the routes, the route command show that the route is associated to just eth1.
Thanks in advance!
Didn't find your answer? Ask the community — no account required.
D
Damion de Soto
David,
All eth1 interfaces are the same. All the IPs are treated equally. the ifconfig command is the only thing that supports the legacy "ethX:X" syntax.
Take a look at the following LATRC docos for examples on how to create multiple routing tables:
formatting link
formatting link
Regards,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer email: damion@snapgear.com
SnapGear - A CyberGuard Company --- ph: +61 7 3435 2809
| Custom Embedded Solutions fax: +61 7 3891 3630
| and Security Appliances web: http://www.snapgear.com~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- Free Embedded Linux Distro at http://www.snapgear.org ---
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.