Skip to main content

Linux Command

More
18 years 2 months ago #16405 by Lindows
Linux Command was created by Lindows
Hey guys,

i want to assign manually configure my eth0 for my linux laptop. I know the ifconfig command to add the ip address, default gateway and broadast address, but i don't know how to add the dns and change the mac address

thanks

Lindows
More
18 years 2 months ago #16416 by nske
Replied by nske on topic Re: Linux Command
It can be done like you already said here :)
More
18 years 2 months ago #16417 by taqqi14
Replied by taqqi14 on topic Re: Linux Command
specify for linux flavor...
in redhat u can do it in following file

/etc/sysconfig/network-scripts/ifcfg-eth0

edit it using Vi or any editor of ur choice and make the necessary changes

For DNS entry edit following file and make necessary changes

/etc/resolv.conf

Hope it helps.
Taqqi14
More
18 years 2 months ago #16420 by nske
Replied by nske on topic Re: Linux Command
Whoops sorry, I read the post in a hurry and it seems I missed the whole question. Like taqqi44 said, although the MAC address can be changed on runtime through ifconfig, to make the change take place in each boot automatically you need to pass it through you distribution's appropriate script. You could also use any script that is executed on boot after the networking script, like rc.local, however that can cause problems if some service that loads before it depend on the network.
Time to create page: 0.122 seconds