skip to main | skip to sidebar

狭路相逢勇者胜

Friday, January 9, 2009

change ip, gateway, dns through command line

DNS:

vi /etc/resolve.conf

IP & netmask:

ifconfig eth0 xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx

Gateway?(need to rethink)

add a "network to be gatewayed" by a certain device say eth1.
route add mygateway eth1
route add -net 192.168.32.0 netmask 255.255.255.0 gw mygateway
Posted by About me at 9:46 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)
View my complete profile

Blog Archive

  • ▼  2009 (14)
    • ►  March (4)
    • ►  February (4)
    • ▼  January (6)
      • The strong get stronger and the weak get weaker
      • LUN, SAN
      • Car Insurance
      • 汇款回中国
      • Free PDF Editor
      • change ip, gateway, dns through command line
  • ►  2008 (93)
    • ►  December (6)
    • ►  November (3)
    • ►  October (8)
    • ►  September (10)
    • ►  July (14)
    • ►  June (9)
    • ►  May (1)
    • ►  April (6)
    • ►  March (17)
    • ►  February (9)
    • ►  January (10)
  • ►  2007 (103)
    • ►  December (7)
    • ►  November (22)
    • ►  October (8)
    • ►  July (1)
    • ►  June (63)
    • ►  May (1)
    • ►  April (1)

Labels

  • Algorithms
  • C Language
  • C++
  • CodeReview
  • Compiler_Design
  • Computer Systems
  • Data Structures
  • Database
  • Design Patterns
  • Health
  • Kernel
  • Multithread
  • Networking
  • Others
  • Performance
  • Script Language
  • STL
  • Tools
  • Ubuntu
  • Unix/Linux
  • VMWARE
  • 办公自动化
  • 股票

Books

  • C++ Gotcha
  • C++ In Action
  • Computer Systems
  • Effective C++
  • Inside the C++ Object Model
  • Introduction to Algorithms
  • Programming Applications for Microsoft Windows
  • Programming Pearls