MontaVista Linux CGE 3.1 Technical Support Req to add Permanant Route
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
MontaVista Linux CGE 3.1 Technical Support Req to add Permanant Route
Dear Team,
I am looking for technical assistance for MontaVista CGE 3.1. I need to add persistent static route, for this I have followed the following two procedures but unable to get the result.
1. Make a text file defining the route, saving it in init.d. Debian specific command update-rc.d filename defaults is not running in terminal. Kindly suggest an alternative command to add the text file as script to launch @ bootup
2. Adding a persistent static route via the ‘up’ command which again not supported. Route is temp added via route add command but is not retained once rebooted.
Kindly refer to any technical document outlining the highlighted points.
I'm presuming you mean a network connection. For that, try /etc/network/interfaces to define a network device/port, including its IP address, gateway and subnet mask. If you need to connect to a specific server, try scripting in Bash; plenty of 'how-to's to find in Google. Your request is rather vague, we have no real idea of what you're trying to achieve here...
Ah, you're giving multiple addresses to the same NIC. IIRC you'd need the alias command for that, but you'd better look that up yourself (never done it: no need to ). I think for a persistent route adding it to /etc/network/interfaces is still required.
MontaVista Linux CGE 3.1 Technical Support Req to add Permanant Route
1)If Scripting in Bash could solve my problem than please help in the regard of how to do script in Bash as i have no idea.
2)I have a problem in editing the file in Linux.I used "vim /etc/network/interfaces then pressed "Insert" then "ESC" and then ":" and then after that my command "add -net 10.231.0.0 netmask 255.255.0.0 eth0.5" but it says “It is not the edit command”. how shoud i modify the file in Linux.
3) My /etc/network/interfaces file looks like the b/m
MontaVista(R) Linux(R) Carrier Grade Edition 3.1
Linux/i686 2.4.20_mvlcge31-tomas
root@STATION_B:~# more /etc/network/interfaces
# %NECCONFIG_BEGIN%
# Customized by necConfig
# Do not modify this file manually!
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address
network
netmask
broadcast
auto eth1
iface eth1 inet static
address
network
netmask
broadcast
To enter text, you must first switch the editor to input mode by typing i (insert) or pressing the Insert key. At the bottom of the
screen, you see the message --INSERT--.Press Esc once to take you back to the command mode. From
command mode you can switch to command-line mode by entering “:”. The cursor jumps to the last line after “:” and waits for a
command entry.
\\After this step when I write my command and press enter as mentioned below
:route add –net 10.231.0.0 netmask 255.255.0.0 // and enter after this
\\It says that as mentioned below
Not an editor command : route add –net 10.231.0.0 netmask 255.255.0.0
Press RETURN or enter command to continue
What editor are you using? Given your remarks I think you'd be best of with nano for the commandline. You don't need to memorize various command-keystrokes, as these are available on the bottom of the screen
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.