Error In Ifcfg Didn Specify Device Or Ipaddr
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Setting up a LAN on CentOS up vote 1 down vote favorite The instructions for setting up a LAN, which I assume would allow me to create a sub-domain on my VPS, are the following using the command-line on CentOS: Using sudo, create the configuration file /etc/sysconfig/network-scripts/ifcfg-eth0:0 with the following: DEVICE=eth0:0 BOOTPROTO=none ONPARENT=yes TYPE=Ethernet IPADDR=$ADDITIONAL_IP$ NETMASK=255.255.255.0 GATEWAY=XXX.XXX.XXX.1 NAME=eth0:0 If you are using a LAN address, it doesn't require a gateway address and would use 255.255.0.0 for the netmask and then you would restart apache. So for LAN IP insert IPADDR=$some ip$? Is GATEWAY left as is or deleted? How do I state the name of my subdomain? After restart I am getting this : -bash-4.1# /etc/init.d/network restart Shutting down interface eth0: [ OK ] Shutting down loopback interface: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: /etc/sysconfig/network-scripts/ifup-aliases: line 174: ipseen_eth0myLAN_IP$=ifcfg-eth0:0: command not found error in ifcfg-eth0:0: already seen ipaddr eth0myLAN_IP$ in $ linux share|improve this question edited Jan 19 '13 at 8:14 asked Dec 1 '12 at 0:01 freja 1474617 Agreed, I am not adding a new IP but don't I have to create the file above for LAN? –freja Dec 1 '12 at 0:29 I just edited that file by taking out command symbol around LAN IP address and the restart went through ok but I have no idea what it has achieved. –freja Dec 1 '12 at 0:38 Yes, if you want to run a Local Area Network (LAN) or VPN within your VPS environment, using a private address space like 192.168/16 or 10/8. It's not quite clear what your desired end result is. –dartonw Dec 1 '12 at 0:43 add a comment| 4 Answers 4 active oldest votes up vote 2 down vote I assume you want to give your server a st
Printing -XML -Clone This Bug -Last Comment First Last Prev Next This bug is not in your last search results. Bug68436 - Cannot configure alias interface for DHCP Summary: Cannot configure alias interface for DHCP Status: CLOSED NOTABUG Aliases: None Product: Red Hat Linux Classification: Retired Component: initscripts (Show other bugs) Sub Component: --- Version: 7.3 Hardware: i386 Linux Priority medium Severity medium TargetMilestone: --- TargetRelease: --- Assigned http://unix.stackexchange.com/questions/57279/setting-up-a-lan-on-centos To: Bill Nottingham QA Contact: Brock Organ Docs Contact: URL: Whiteboard: Keywords: Depends On: Blocks: Show dependency tree /graph Reported: 2002-07-10 04:11 EDT by Martin Lichtin Modified: 2014-03-16 22:28 EDT (History) CC List: 1 user (show) rvokal See Also: Fixed In Version: Doc Type: Bug Fix Doc Text: Story Points: --- Clone Of: Environment: https://bugzilla.redhat.com/show_bug.cgi?id=68436 Last Closed: 2005-09-29 16:05:04 EDT Type: --- Regression: --- Mount Type: --- Documentation: --- CRM: Verified Versions: Category: --- oVirt Team: --- RHEL 7.3 requirements from Atomic Host: Cloudforms Team: --- Attachments (Terms of Use) Add an attachment (proposed patch, testcase, etc.) Groups: None (edit) Description Martin Lichtin 2002-07-10 04:11:19 EDT From Bugzilla Helper: User-Agent: Mozilla/5.0 (compatible; Konqueror/3.0.0-10; Linux) Description of problem: Cannot configure an alias interface for use with DHCP. I need two DHCP addresses for the eth0 interface, so I configure both eth0 and eth0:0 for DHCP. This does not work for the alias interface. Version-Release number of selected component (if applicable): 6.67-1 How reproducible: Always Steps to Reproduce: 1. Create ifcfg-eth0:0 containing DEVICE=eth0:0 BOOTPROTO=dhcp 2. Run ifup eth0 Actual Results: # ifup eth0 Determining IP information for eth0... done. error in ifcfg-eth0:0: didn't specify device or ipaddr Additional info: Comment 1 Bill Nottingham 2005-09-29 16:05:04 EDT Aliases don't support dhcp. Note You need to log in before you can c
Common F23 Bugs Common F24 Bugs Communicate with Fedora The Documents Bug Reports Fedora Update System (Bodhi) Fedora Build System (Koji) Official Spins FedoraForum.org > Community Lounge http://forums.fedoraforum.org/showthread.php?t=271474 > Linux Chat [SOLVED] Centos 6.0:run ifup eth0 :Error suitable device found FedoraForum Search User Name Remember Me? Password Forgot Password? Join Us! Register All Albums FAQ Today's Posts Search Linux http://grokbase.com/t/centos/centos-virt/09am6brva1/error-setting-up-bridge-with-static-ip-address Chat The place to talk about anything linux-related outside of Fedora Google™ Search FedoraForum Search Red Hat Bugzilla Search Search Forums Show Threads Show Posts Tag Search Advanced Search Go error in to Page... Thread Tools Search this Thread Display Modes #1 27th October 2011, 05:37 PM cdlover Offline Registered User Join Date: Oct 2011 Posts: 3 Centos 6.0:run ifup eth0 :Error suitable device found when i finished using "setup" to set my ip addr to be static to 192.168.1.4,and restart network service,there is a problem as the title reads. Error:No suitable device error in ifcfg found: no device found for connection 'Auto eth0' here is some information: #dmesg | grep eth eth0: registerd as PCnet/PCI II 79c970A eth0: link up eth0: no IPv6 routers present when i run #ifconfig ,there is no ip addr, since the static ip that i have configured didn't work. and my file /etc/sysconfig/network didn't use the static ip. but the file /etc/sysconfig/network-scripts/ifcfg-Auto_eth0 have changed to the configuration of static ip addr . i try a method that is semilar to my question,and remove the following file and reboot the system: /etc/udev/rules.d/70-persistent-net.rules but i didn't work . ---------- Post added at 12:37 AM ---------- Previous post was at 12:10 AM ---------- there is another clue when i run #service network restart there if a failed: Bringing up interface Auto_eth0: Error: no suitable device found:no device found for connection 'Auto eth0' notice that there is no underlline between the Auto and eth0 at the second line . Last edited by cdlover; 27th October 2011 at 05:12 PM. cdlover View Public Profile Find all posts by cdlover #2 27th October 2011, 06:05 PM leigh123linux Guest Posts: n/a Re: Centos 6.0:run
RHEL virtualization guideto set up a bridge on a system running CentOS 5.4.I copied my ifcfg-eth0 to ifcfg-eth0:1 andset its content to this:DEVICE=eth0:1HWADDR=[The MAC address from eth0]ONBOOT=yesBRIDGE=br1I then created ifcfg-br1 with this content:DEVICE=br1TYPE=BridgeBOOTPROTO=staticBROADCAST2.168.2.255IPADDR2.168.2.202NETMASK%5.255.255.0NETWORK2.168.2.0ONBOOT=yesDELAY=0When I do service network restart, I get this error:error in ifcfg-eth0:1: didn't specify device or ipaddrI specified the device so it looks like it wants an IPaddress but that is contrary to what I am reading onthe Internet.Any ideas what went wrong?Thanks,Neil--Neil Aggarwal, (281)846-8957, www.JAMMConsulting.comWill your e-commerce site go offline if you havea DB server failure, fiber cut, flood, fire, or other disaster?If so, ask about our geographically redundant database system. reply Tweet Search Discussions Search All Groups centos-virt 4 responses Oldest Nested Neil Aggarwal I did some more reading on the Internet and it looks like I am supposed to set up the bridge on eth0 and configure the bridge with the IP address of the host. So, I removed ifcfg-eth0:1 and changed ifcfg-eth0 to this: DEVICE=eth0 HWADDR=[The MAC address] ONBOOT=yes BRIDGE=br0 I removed ifcfg-br1 and created ifcfg-br0 with this content: DEVICE=br0 TYPE=Bridge BOOTPROTO=static BROADCAST2.168.2.255 IPADDR2.168.2.200 NETMASK%5.255.255.0 NETWORK2.168.2.0 ONBOOT=yes DELAY=0 I don't get any errors Neil Aggarwal at Oct 20, 2009 at 6:11 pm ⇧ I did some more reading on the Internet and it looks likeI am supposed to set up the bridge on eth0 and configurethe bridge with the IP address of the host.So, I removed ifcfg-eth0:1 and changed ifcfg-eth0to this:DEVICE=eth0HWADDR=[The MAC address]ONBOOT=yesBRIDGE=br0I removed ifcfg-br1 and created ifcfg-br0 with thiscontent:DEVICE=br0TYPE=BridgeBOOTPROTO=staticBROADCAST2.168.2.255IPADDR2.168.2.200NETMASK%5.255.255.0NETWORK2.168.