BackTrack5 simple network configuration command

Source: Internet
Author: User
Automatically obtain IPdhclienteth1 temporary IP address ifconfigeth0192.168.1.112/24 set IP address and subnet mask routeadddefaultgw192.168.1.1 set gateway address echonameserver192.168.1.1 & gt;/etc/resolv. conf set DN... automatically obtain IP dhclient eth1 temporary IP address ifconfig eth0 192.168.1.112/24 set IP address and subnet mask route add default gw 192.168.1.1 set gateway address echo nameserver 192.168.1.1>/etc/resolv. conf sets the DNS address/etc/init. d/networking restart Nic set static IP ifconfig-a view all NICs vi/etc/network/interfaces Edit IP address auto eth0 # iface eth0 inet dhcp iface eth0 inet static address 192.168.1.112 IP address netmask 255.255.255.0 subnet mask network 192.168.1.0 network address broadcast 192.168.1.255 broadcast address gateway 192.168.1.1 gateway address/etc/init. d/networking restart Nic vi/etc/resolv. conf edit DNS update-rc.d networking defaults settings automatically enable Nic wireless network settings/etc/init after the system is started. d/wicd start wicd Source: http://3389.in/838.html
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.