Networking :: Configure PC For Wired/static And Wired/DHCP Networks ?
Oct 27, 2010
I want my netbook to connect automatically to both the office wired/static network and to the usual wired/DHCP networks.
wicd is wicked but netsearching hasn't revealed how to configure it for both wired/static and wired/DHCP except by manually switching profiles.
wicd's profiles can use pre/post(dis)connect scripts but I don't know how to integrate them into wicd when they are upping/downing connections on cable (un)plugging.
If it is not practical to solve this within wicd, I'll explore standalone scripts to configure eth0 on cable (un)plugging, as detected by ifplugd.
I'm having mysterious wired network problem with my Karmic/9.10 machine. It hasn't been in network a while, but now I finally got the cabling done. I can't get the IP from dhcp server (TW-EA510), and static settings doesn't work either. Fresh cabling showed OK 1Gb connection on tester, and win7 laptop works fine. I even tried with long cable though the rooms, but it doesn't help, so it definately isn't the new cabling.
Log from the router after issuing #"dhclient": Feb 16 23:01:43 DHCP SERVER: DHCPDISCOVER from 00:01:29:fb:c5:d1 via br0 Feb 16 23:01:43 DHCP SERVER: DHCP offer to 00:01:29:fb:c5:d1 Feb 16 23:01:49 DHCP SERVER: DHCP request from 00:1b:ea:c8:a0:ba Feb 16 23:01:49 DHCP SERVER: DHCP ack to 00:1b:ea:c8:a0:ba Feb 16 23:01:54 DHCP SERVER: DHCPDISCOVER from 00:01:29:fb:c5:d1 via br0 Feb 16 23:01:54 DHCP SERVER: DHCP offer to 00:01:29:fb:c5:d1 Feb 16 23:02:03 DHCP SERVER: DHCPDISCOVER from 00:01:29:fb:c5:d1 via br0 [Code]....
Motherboard is some old Lanparty with two ethernet ports, NVidia CK804 and Marvell 88E800 rev 13 Gigabit netwok adapters, neither of them works. At least another of them has been worked earlier when I last got it wired. It's been a while, so I'm not sure which one of them and with different router if that matters.
v10.4 {I have completely re-edited this thread because I have started over fresh. I am no longer using bind9, but now using the installation-defaults nameserver and dhcp and trying to get a handle on how things ought to be setup properly. My previous attempts was a disaster.}
Coming fresh out of a newly installed 10.4, I obviously was able to get network connectivity but then I ran into trouble the minute that I tried to change eth0/eth1 connections via network-manager's applet. What I found was, that when I attempted to define static connections, all bets were off. It seems that once one attempts to change eth0/eth1 which are wired devices, I was no longer able to recover my network connectivity!
I was however able to setup a wireless connection, so in this way I was able to get back network (and Internet) connectivity, and write this thread on this forum. I notice also, that there is no longer 'Networks' in the System->Administration menus! Geez, what the hell is going on? how to properly configure my static wired connection? Networks in 10.4 have really changed alot!
My setup is above, I hope it comes out OK on this forum, and someone can understand what its supposed to be! My problem is I am not sure how to get [PC] to be able to see [Internet]. From [Laptop] I can get both networks to work, and have tried using brctl to bridge them, but as soon as I do "ifconfig br0 up" neither network... works anymore (cant ping either router).
There are two networks in house I rent with other roommates. One wired, the other wireless (two separate routers), long story of why it worked out that way. For some reason, I am getting the same ip on eth0 and wlan0 even though both connections come from two separate routers, see below:
currently running ubuntu 9.10, the internet connection im hooking up to is a router from a friends personal dish internet (were all deployed to Afghanistan). Here is all the static information that i need to input.now i have all this information input in windows 7 and it works fine since its all broken out exactly how it was given to me in the ipv4 settings page. wicd in ubuntu however wont use these settings.
I'm trying to install Ubuntu 10.04 on my Toshiba A200-12U laptop (with an Atheros AR5007EG wireless card), but networking is being problematic.I entered Network Configurations and tried to get 'Auto eth0' working -- I went to Edit > IPv4 settings and filled in 'Addresses' with the details of my connection:
Address: 192.168.1.254 (the local IP of my router) Netmask: 255.255.252.0 Gateway: 94.195.208.1
I have a Zotac Ionitx A-U. I can't get it to establish an internet connection with the wired ethernet within Ubuntu. The chip is detected, but trying to bring up the connection stalls out at trying to obtain a DHCP lease, like this:
DHCP DISCOVER ... DHCP DISCOVER ... No DHCPOFFERS received Specs: Ionitx A-U Ubuntu 10.04 x64 kernel 2.6.32-22 (also didn't work in 9.10)
Since that time I moved to Archlinux and I love it. I do however run lubuntu live from a USB for my work PC. I am having a problem with it. I think it's okay to post here because the core of the system is still Ubuntu. I don't think LXDE is the problem. I start up the live environment and it says 'wired connection connected' but I can not load any pages or do anything.
I thought it may be a problem with configuration so I copied down (from Windows) the IP, Subnet, Gateway and DNS. I put them in manually and it doesn't say connected any more and still no connection at all. I am unsure what to do from here. I am not really familiar with Ubuntu enough to try much. I tried to 'dhcpcd eth0' but dhcpcd isn't installed. I guess the default Ubuntu network manager has dhcp enabled automatically.
I recently did some troubleshooting on a USB wireless dongle hooked up to my Mint distro. I need the USB wireless to access a home DSL wireless modem out to the Internet. The wireless DSL is on 192.168.0.1
I also have a 10/100 ethernet NIC in the computer, for non-wireless connections. The wired ethernet is all 192.168.1.1. I noticed in /var/log/syslog that there are numerous "DHCPDISCOVER on eth0 to 255.255.255.255 port 67" messages.
Since eth0 has a hard-coded IP, I dunno why DHCP is trying deal with it. Can I turn off DHCP activity against eth0? How to do that?
I'm running an up-to-date Fedora 12 machine with the Gnome desktop (meaning with Network Manager). My network connection is a wired ethernet to a switch which then connects to a Netgear router. For some reason, this machine can't renew its leases with DHCP, so NetworkManager deactivates eth0, taking my machine off the network. I have to click Network Manager and enable eth0, which seems to work every time.
How can I fix it? Here are the relevant bits from /var/log/messages showing a failed DHCP request and then the successful renewal.
Code: Aug 1 04:00:08 ironton dhclient[12452]: DHCPREQUEST on eth0 to 192.168.1.1 port 67 Aug 1 04:00:08 ironton dhclient[12452]: DHCPNAK from 192.168.1.1 Aug 1 04:00:08 ironton NetworkManager[1261]: <info> (eth0): DHCPv4 state changed reboot -> expire Aug 1 04:00:08 ironton NetworkManager[1261]: <info> (eth0): device state change: 8 -> 9 (reason 6) Aug 1 04:00:08 ironton NetworkManager[1261]: <info> Marking connection 'System eth0' invalid because IP configuration expired.
I am puzzled with trying to configure a linux (openSUSE) client to dhcp to eBox DHCP server. I am using dhclient to lease an IP address with dhclient eth0 -s 10.45.48.108 and get a response
openSUSE11232CL1 dhclient: DHCPDISCOVER on eth0 to 10.45.48.108 port 67 interval 4 openSUSE11232CL1 dhclient: DHCPOFFER from 10.45.48.108 openSUSE11232CL1 dhclient: DHCPREQUEST on eth0 to 10.45.48.108 port 67 openSUSE11232CL1 dhclient: send_packet: Network is unreachable openSUSE11232CL1 dhclient: send_packet: please consult README file regarding broadcast address.
The server reports eBox141 dhcpd: DHCPDISCOVER from 00:0c:29:3e:57:a3 (openSUSE11232CL1.domain.net) via eth0 eBox141 dhcpd: DHCPOFFER on 10.45.200.2 to 00:0c:29:3e:57:a3 (openSUSE11232CL1.domain.net) via eth0
I interpret this as the server receives the request and the client accepting it but the lease does not last long and the connection breaks. what this could be and why the connection breaks? Or my undestanding is totally wrong on how it works and should work? And BTW, where is that README file that's referenced in the message I receive on the client?
The issue I am having is that I have a Wired Network to share files between multiple computers, and I use a 3G Mobile USB Stick to access the Internet. what occurs is as follows:If I log in with the Wired Connection attached I can not access the internet, but if I unplug my LAN and use only the wireless USB Stick everything works properly. Is there a way to configure the OS to Use my USB stick as the primary internet connection while still having access to the other computers on my LAN through the wired connection. My wired connection is currently run from a router that is a DHCP server. I am currently running Ubuntu 9.10
Recently, I have encountered a problem when setting my network configuration.I want to automatically get an IP address through DHCP at system startup, and this can be done by editing /etc/network/interfaces file, adding auto eth0 iface eth0 inet dhcp The problem is that I want to set a static DNS, but DHCP will automatically overwritten /etc/resolv.conf file. What should I do?
I have a MB with 2 NICs and on 1 I would like to have a static IP, on the other a DHCP for a local network.The problem is the DHCP provided gateway is made default vs the one for the static IP and resolv.conf is overwritten.Any suggestions how could this be resolved? I can tweak both the DHCP server settings and the box settings.
Situation: I can access Ubuntu from Windows XP but not XP from Ubuntu. When I try to access XP from Ubuntu I get message "Unable to mount location Failed to retrieve share list from server"
In System/Administration/Network Tools using Network device: Loopback Interface (lo) I can ping the IP address of the XP machine. Also, using Network device: Ethernet Interface (eth0) I can ping the XP by using its computer name.
In System/Preferences/Network Connections it shows under the Wired tab: Auto eth0 never used
Below are the settings in my smb.conf file.
## Browsing/Identification ### workgroup = MSHOME wins support = no wins server = w.x.y.z dns proxy = no
I'm running Natty and trying to troubleshoot my ethernet problem. An old laptop worked fine (including the ethernet) until a few days ago when we had a lightning strike relatively nearby. It appears power went out briefly or there was a spike (all hardware, except the DSL modem/NIC, had surge protection). The machine works fine now... except the network. I've run lshw -c network and it's showing "network: UNCLAIMED". ifconfig shows only the loopback and no eth0 at all. I've tried: ifup/ifdown, rebooting, live booting Natty off a USB drive, and tried on a network I know works... all to no avail. One interesting bit of info is that I can see a MAC address when I view the 'network connections' via the applet in top panel.
Am I reasonable to conclude the ethernet port got fried by the lightning? Any pearl of wisdom is welcome.
I am trying to share my internet access using the following setup.
A Linksys WRT54G v5 router that is connected to my cable modem in my basement. I want the signal to be picked up by my Hawking HWABN1 and sent through a Linksys BEFSR41 to my Ubuntu desktop running 9.04.
I'm pretty sure the Hawking is receiving the signal because when I check the devices in the wireless router setting the IP shows up. I can't seem to get anything whether it is hooked up to the BEFSR41 or straight to the desktop and Ubuntu tells me I'm offline and I'm not getting an IP.
I have a WinXP laptop that I have used to run the Hawking setup and it is supposed to be accessible through a web based interface similar to the routers.
I have a LAN (2 PC !) wire connected and I use a Huawei e182e to join the internet (If you have problem to install the Huawei on Linux, don't install drivers proposed on forums or don't try to unlock it. It's not necessary, simply install a kernel > 2.6.34 and it will install itself as a perfect plug and play). On the unconnected machine, the Internet is accessible normally from the broadband dongle, but the connection stops when I plug the LAN cable. It's normal since the PC cannot use both network connections simultaneously without a previous configuration, and the question is precisely there !
Bridging could be a solution but mobile broadband uses ppp protocol that is not on the same layer as wired LAN. brctl refuses to add the key into the bridge configuration. Vtun seems a better approach since it works more independently from the protocols, but it must be installed on both sides and the broadband dongles does not accept software installation in it. Documentation from Huawei is quite inexistent. Actually the story could be the same for a computer connected to a wired LAN and using a wireless dongle, but here bridging is feasible (not tested by me) because they work on the same layer. I tried to deactivate LAN switching in the BIOS: no result static address with gateway pointing on the other device (I tried everything) no result. How to bridge a ppp dongle with a wired LAN?
I'm trying to set up a wired/wireless linux router. it wirelessly connects to a network, then is wired to the internet port on my netgear wgr614.
eth0 (wireless) is dhcp
eth1 (wired)
The router
Internet port is static
And local network
I turned forwarding on, set the iptables for masquerade and nat, but i'm not really sure what i'm doing wrong. any pc connected to the wrg614 can see the pc thats supposed to be forwarding packets but can't see any further(the other router at 192.168.1.1 or the internet).
auto lo iface lo inet loopback auto seth0 iface seth0 inet static
[code]....
Restart networking:
"sudo /etc/init.d/networking restart"
Everything is fine but 24 hours later the server resets to the DHCP address assigned to it. I have not installed any GUI im just running Ubuntu 10.04 LTS in Hyper V. After it resets to DHCP I log into it using the dhcp address and reset the networking service "sudo /etc/init.d/networking restart". It goes back to the static IP specified in interfaces. I have rebooted several times but every 24 hours it resets.
BTW - Before someone asks about iface seth0 instead of it being iface eth0. It is a Hyper V module running.[URL]
I have 2 Ethernet connections, one (eth0) for the internet which gets set with dhcp, and one (eth1) for my internal network on which I have dhcp3-server running. I set eth1 to use static IP in interfaces, but every time I reset the network, it is fine for a couple of minutes, and switches over do being served by my own dhcp server on the same machine. (the interfaces file clearly says "iface eth1 inet static")
Where I work we use almost exclusively Ubuntu 8.04 in command-line only form. I need to know if it is possible to configure one of these devices to use DHCP and a given Static IP at the same time. I know how to do one, or the other, but not both. #1. Is this possible? #2. If so, how?P.S. Yes, I did look around before I asked this, but I could not find anything. Maybe I suck at searching?
ps3 lan, psp wan, xp desktop lan, netbook W7 wan, fujitsu laptop ubuntu wan for surfing but often lan for large files, android 2.1 phone wan, mac sawtooth G3 (rarley) lan. near future, tablet wan, crappy ancient laptop xp lan rarely.next week i am having 6TB DS211j NAS (omg cant wait)I think, from what i have been reading, that moving to a static ip for each device will be better suited.I manage the belkin router from the ubuntu latop and wondered what the best way to proceed is, which first, what order etc etc.I can understand what needs to be done, i have the primary dns and ip numbers and mac address for every device ( the network is mac filtered)
so how would you begin...... a peice of paper and some drawings i have ready to plan it out.the reason i choose to change from dhcp to static is because of the arrival of the DS112j. from my understanding this device would benefit from never having its ip changed on the network. There have been times when the ip has changed on some of the devices in the past when the belkin has suffered a power failure or reset.
Can't change from dhcp to static ip address.I've installed Oracle's version of Linux Redhat 5, but I'm having no success changing from dhcp to a static IP address. My machine is plugged directly into a Belkin router which has the IP address: 192.168.2.1.If I use the gui: /usr/bin/system-config-network and set the network device to dhcp,it works fine. But if I set the IP address manually, I get no internet traffic, and if I ping an internet website, "network unreachable".The installation instructions for Oracle say that they want a full domainname. I've tried gateway.2wire.net. This worked in the last place I did a successful installation.It was the address of my ATT router. If I plunked that into a browser, I got the router configuration.
I've installed Fedora 13 on a Toshiba Satellite A40 laptop, and am trying to get the wired ethernet connection to work. Network Manager says it is connected, and the connection details (DHCP assigned IP, gateway, dns servers) all seem correct. However, I cannot browse the internet. Checking for updates fails also. I have tried pinging various sites and the results are inconsistent - sometimes it works, sometimes it times out with "unknown host". [URL]... I've searched around for similar issues and tried disbaling ipv6 both in Fedora and Firefox, but this doesn't help either.
Issue: Using Fedora-14-x86_64-Live-Desktop.iso, I created a live usb and tried it on Dell M6400. I can boot into F14, see the internal hard-drive and other usb drives -- but F14 will not go on the network -- neither wired or wl networks.
I am not sure what additional information I need to provide to help resolve this issue. Perhaps some background info would help?: I am trying to move from XP to linux on the M6400. The latest Ubuntu live CD would not boot, the latest CentOS live CD could not find the internal drive; I got best results with the latest Fedora (and I am more comfortable with the F14 gnome interface than the F14 KDE, the Ubuntu, and the CentOS interfaces). I do not know how to investigate the inability of F14 to detect the ethernet cabled network. I was unsuccessful in my attempts to get the wireless to work: "lspci -nn" shows BCM4322 802.11a/b/g/n 14e4:4326 (rev01). I read [URL]../docs/linux_sta/README.txt and used what I learned in my attempts. Installing broadcom-wl-5.60.48.36-1.fc13.noarch.rpm, kmod-wl-2.6.35.6-48.fc14.x86_64-5.60.48.36-2.fc14.2.x86_64.rpm, and kmod-wl-5.60.48.36-2.fc14.2.x86_64.rpm (found at rpmfusion) did not help. I tried to build and install the sources from http://www.broadcom.com/support/802.11/linux_sta.php; the machines I had for building were 2.6.28-18-generic Ubuntu, fc5, and rhel5 -- attempts with these builds failed too.
I just got a new power supply in my old desktop, and installed ubuntu on it. I've got three NICs in there (for a later project), and when I connect my cable modem to any one of the NICs, then little connection triangle-spinny-thing in the upper-right tries to connect. But it never gets all the way connected.
I have two PCs one has Windows XP the other has Ubuntu 9.10 on it, the Windows PC has no problems getting on the Internet (I'm posting this with it) and getting an IP address from the wired router. The wired router I have is ONLY wired it does not have wireless at all, it is currently setup to hand out IP addresses between 192.168.1.2 and 192.168.1.254.
The Ubunutu 9.10 PC worked great last night surfed all over the place for hours, then finally shut it down last night when I went to bed, shut down appeared to be normal like it always does when it shuts down, then this morning when I booted it up it gave error: "WIRED NETWORK - disconnected you are now offline".