static ip and dhcp ip

here’s what to do when setting up the network in ubuntu. u know when everything dont set up automaticly like ‘jendela’.
i m using the attansic lan card, onboard, i have read it that the lan have the atheros chipset. slackware cant read it. u should find the driver (that i lost it) and install it to your module.
but this is in ubuntu. the lan read as attansic. but no connection yet.

#sudo su (always log in as root)
#nano /etc/network/interfaces
write these down :

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.20
network 192.168.1.1
netmask 255.255.255.0
broadcast 192.168.255.255
gateway 192.168.1.1

the ip address above is for example. see my post about broadcast and netmask if you dont know what are they.

then
#nano /etc/network/option

write these down

ip_forward=no
spoofprotect=yes
syncookies=no

save them.
then restart the network

#/etc/init.d/networking restart

wait for a moment then connected.

this is what u should do if you are using dhcp. write these down inside the interfaces file

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

that’s it try it.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.