Hot Downloads

Welcome, Guest
Username: Password: Remember me

TOPIC: Linux Command

Linux Command 10 years 3 months ago #16405

  • Lindows
  • Lindows's Avatar
  • Offline
  • Senior Member
  • Posts: 246
  • Karma: 0
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
The administrator has disabled public write access.

Re: Linux Command 10 years 3 months ago #16416

  • nske
  • nske's Avatar
  • Offline
  • Expert Member
  • Posts: 613
  • Karma: 0
It can be done like you already said here :)
The administrator has disabled public write access.

Re: Linux Command 10 years 3 months ago #16417

  • taqqi14
  • taqqi14's Avatar
  • Offline
  • Distinguished Member
  • Posts: 91
  • Karma: 0
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
The administrator has disabled public write access.

Re: Linux Command 10 years 3 months ago #16420

  • nske
  • nske's Avatar
  • Offline
  • Expert Member
  • Posts: 613
  • Karma: 0
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.
The administrator has disabled public write access.
Time to create page: 0.083 seconds

CCENT/CCNA

Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V

Linux

  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup