Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
07-04-2013, 12:09 PM
|
#1
|
LQ Newbie
Registered: Jul 2013
Posts: 2
Rep: 
|
Setting Static IP ADDRESS in Linux: eth0 config missing
Hi All...
I have just set up linux on VMware on my system.
I am trying to set up static ip address for it but eth0 and eth1 config interface files are missing...
please if someone cud help me it..!
Regards,
Vidhyaa.
(I am unable to attach attachments..)
|
|
|
07-05-2013, 05:18 AM
|
#2
|
Member
Registered: Feb 2013
Posts: 42
Rep: 
|
By default the interface configuration files are not present in linux. You need to create them manually. You can create them in the directory "/etc/sysconfig/network-script/".
|
|
|
07-05-2013, 11:35 AM
|
#3
|
LQ Newbie
Registered: Jul 2013
Posts: 2
Original Poster
Rep: 
|
Hi..
Thank you gauravgoel for the reply.
I created the interface file in "/etc/sysconfig/network-script/" with the name "ifcfg-eth0".
after that when i run
#service network restart
the output is:
Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.
Can you help me with it..!! I am also attaching the screenshot of the #ifconfig output.
|
|
|
07-05-2013, 06:39 PM
|
#4
|
Member
Registered: Oct 2012
Location: Tucson, AZ
Distribution: Debian/CentOS
Posts: 124
Rep:
|
Can you please show the contents of your /etc/sysconfig/network-scripts/ifcfg-eth0 file?
This might give some answers into the problem.
|
|
|
07-06-2013, 03:47 AM
|
#5
|
Member
Registered: Feb 2013
Posts: 42
Rep: 
|
You could give something like below..
DEVICE=eth0
TYPE=Ethernet
BOOTPROTO=none
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
BROADCAST=xxxx
IPADDR=xxxx
NETMASK=xxxx
NETWORK=xxxx
ONBOOT=yes
once the interface file is configured. Run ifup eth0 and then restart network service.
|
|
|
07-06-2013, 05:11 PM
|
#6
|
Member
Registered: Oct 2012
Location: Tucson, AZ
Distribution: Debian/CentOS
Posts: 124
Rep:
|
I am using bridging on my test network, but here are by configs (eth0 and the bridge [br0]):
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:1B:78:09:20:FB
ONBOOT=yes
TYPE=Ethernet
IPV6INIT=no
USERCTL=no
BRIDGE=br0
vi /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
DNS1=192.168.1.5
DNS2=192.168.1.1
IPADDR=192.168.1.5
NETMASK=255.255.255.0
ONBOOT=yes
SEARCH="sddomain.local"
Hope it helps. Also, it would be goog to see your eth0 config & to know what type of Linux yer using. Oh, and a screenshot of the error might be a good clue, too.
|
|
|
07-09-2013, 02:40 AM
|
#7
|
Member
Registered: Feb 2013
Posts: 42
Rep: 
|
I am also using bridged network on my VMware. You don't need to configure the bridge interface specifically. Just configure the ehternet interface (eth0).
DEVICE=eth0
TYPE=Ethernet
BOOTPROTO=none(static) or dhcp
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
BROADCAST=xxxx
IPADDR=xxxx
NETMASK=xxxx
NETWORK=xxxx
ONBOOT=yes
once the interface file is configured. Run ifup eth0 and then restart network service.
|
|
|
All times are GMT -5. The time now is 12:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|