Showing posts with label networking. Show all posts
Showing posts with label networking. Show all posts

Thursday, March 24, 2011

To get a Static IP Address from a DHCP Server (On Linux)

Thanks to Ivan.


Edit /etc/network/interfaces

Change settings to:

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.35
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.1.255
gateway 192.168.1.254

Thursday, May 28, 2009

Connecting to Wired Connection on Linux, Else to Wireless

This did not seem to work on my linux system. It would always first try to connect to wireless and when that failed, it would just sit there. I had to manual do ifdown and ifup on the wired interface. I asked about this question on the ubuntu mailing list, and they recommended wicd.

Wicd connects to a wired connection if there is any, else allows you to connect to a wireless. It works just fine, but does not connect to the wireless automatically (not sure though, probably only sometimes). But I what I needed works just fine with wicd and I am totally satisfied.

Wednesday, May 6, 2009

Back to Wired Connection

I am on Intrepid Ibex. After a long time, I decided to use wired connection instead of wireless. But nothing would happen when I would connect the wire. I tried "sudo /etc/init.d/networking restart" but does not work. Finally I did "sudo ifup eth0" a couple of times. It is then that wired network started working.