Set static IP
In BT terminal input:
IFCONFIG-A Press Enter//view all network cards
In BT terminal input:
Vi/etc/network/interfaces Press Enter//edit IP Address
Eth0 in the following code can view your network information to make changes
Auto Eth0
#iface eth0 inet DHCP
Iface eth0 inet Static
Address 192.168.1.28//(IP)
Netmask 255.255.255.0//(subnet mask)
Network 192.168.1.0//(Internet address)
Broadcast 192.168.1.255//(broadcast address)
Gateway 192.168.1.1//(gateways address)
VI Simple instructions:
Press the keyboard I key to modify, press the keyboard to delete the original code to delete all, the following code to be modified by the individual needs to add, after the completion of pressing the keyboard ESC, input method switch to the English capital, press the keyboard W key, press the keyboard Q key, then the input method switch to English lowercase input: Exit, save exit.
===========================
Auto Eth0
#iface eth0 inet DHCP
Iface eth0 inet Static
Address 192.168.1.28
Netmask 255.255.255.0
Network 192.168.1.0
Broadcast 192.168.1.255
Gateway 192.168.1.1
============================
In BT terminal input:
Vi/etc/resolv.conf Press ENTER
NameServer x.x.x.x//Edit dns:nameserver (Personal network DNS)
Follow the vi simple instructions above to edit the operation.
In BT terminal input:
/etc/init.d/networking Restart Press ENTER//restart NIC
In BT terminal input:
UPDATE-RC.D Networking Defaults Press ENTER//set to automatically enable NIC after system startup
At this point the basic network configuration is complete, no surprises can now access the network.
BACKTRACK5-R3 Configuring Network Information