Hot Downloads

×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Linux Command

Linux Command 12 years 3 weeks ago #16405

  • Lindows
  • Lindows's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 246
  • Thank you received: 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

Re: Linux Command 12 years 3 weeks ago #16416

  • nske
  • nske's Avatar
  • Offline
  • Expert Member
  • Expert Member
  • Posts: 613
  • Thank you received: 0
It can be done like you already said here :)

Re: Linux Command 12 years 3 weeks ago #16417

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

Re: Linux Command 12 years 3 weeks ago #16420

  • nske
  • nske's Avatar
  • Offline
  • Expert Member
  • Expert Member
  • Posts: 613
  • Thank you received: 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.
  • Page:
  • 1
Time to create page: 0.146 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