[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Networksettings



    "Benjamin" == Benjamin Swatek <bennosdebian@gmx.net> writes:

    Benjamin> So please can anyone tell me how to set up my network
    Benjamin> connection in comando line?

    Benjamin> I do connect via ethernet to the LAN here and then via a
    Benjamin> router to internet.

    Benjamin> In MacOS X I have to set up to connect: My IP Subnetmask
    Benjamin> Router and DNS server.

    Benjamin> I thought i did set all this up correctly in debian, but
    Benjamin> it seems it doesn't work.

You configure the network via the /etc/network/interfaces file (read
'man interfaces'). For example you might do something like this:

auto eth0
iface eth0 inet static
        address 192.168.2.202
        netmask 255.255.255.0
        network 192.168.2.0
        broadcast 192.168.2.255
        gateway 192.168.2.1
        up ifconfig eth0 mtu 1480

You can leave out the last 'up...' line since it probably does not
apply to you, but I thought I'd leave it in as an example. The 'auto
eth0' line will bring up eth0 during boot. You can use 'ifup eth0' and
'ifdown eth0' from the command line directly if you like.

The DNS server name goes into /etc/resolv.conf for static
configurations, you just put a line similar to this

nameserver 192.168.2.1

for each DNS server IP you have.

Cheers!
Shyamal



Reply to: