LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-10-2014, 05:51 AM   #1
westboy1
LQ Newbie
 
Registered: Sep 2014
Posts: 2

Rep: Reputation: Disabled
Set Static IP MontaVista Linux


Hello

Could anyone please tell me how to set a permanent static ip address in MontaVista Linux.

I have console access to the device through a serial cable.

The location of the network files appears to be different to other Linux distribution and I just cannot find the correct file to edit.

Thanks
 
Old 09-10-2014, 10:04 AM   #2
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 98
I'm not personally familiar with this distribution, but according to their support site, it should be the file /etc/network/interfaces. You can find more detailed information here: https://support.mvista.com/DocViewer...ace_intro.html

Search for Configure a Minimal Network, and it lists required files that must be in place along with examples of those configuration files.

I hope this helps!
 
Old 09-10-2014, 10:41 AM   #3
westboy1
LQ Newbie
 
Registered: Sep 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi

This one has me really baffled, if I issue the command ifconfig I can see that eth5 has an ip address of 192.168.20.7.

According to the documentation the file /etc/network/interfaces sets up each Ethernet interface, when I open this file with vi it only mentions eth0 and all lines are commented out.

eth5 is the interface I wish to change the ip address of but I really cannot find where this is set.

Thanks
 
Old 09-10-2014, 02:53 PM   #4
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 98
I would comment out:
#auto eth1

I would un-comment:

iface eth0 inet static
address 10.23.3.32
network 10.23.3.0
netmask 255.255.255.0
broadcast 10.23.255.255
gateway 10.23.3.1

and populate with the correct information. I would then do ifconfig eth5 down and ifconfig eth0 up.

If this doesn't work, I am out of ideas... If you still have problems, let me know and I will download an ISO and create a VM and see if I can get it resolved for you. If you need me to do this, please send me a link to download the specific version that you are using.

Last edited by netnix99; 09-10-2014 at 03:03 PM.
 
Old 09-15-2014, 12:58 PM   #5
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 98
Did you get your issue resolved???
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux Basics - Set A Static IP On CentOS LXer Syndicated Linux News 0 06-13-2014 04:42 AM
[SOLVED] Set Static IP Quinlan Linux - Newbie 9 09-18-2010 05:18 AM
how do i set a static ip? ninja master Slackware 9 11-20-2008 09:15 PM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 12:13 PM
How do i set a static ip in Linux SSBN Linux - Networking 1 04-29-2003 10:43 PM


All times are GMT -5. The time now is 12:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration