Assignment of IP-Address
Hi,
How to assign the IP-Address to a system by software. Regards. |
netconfig
|
ifconfig eth0 1.2.3.4
|
if you are using debian, then you can edit your /etc/network/interfaces file and put all of the data there you need:
when i get to the house i will post what my interfaces file looks like and explain why i do it the way i do. |
here is the /etc/network/interfaces file on my laptop.
Code:
# This file describes the network interfaces available on your system In the eth0 you notice it has 2 differnt sets of IPs. one is for the house when i do use the eth0 (only when i get really tired of ndiswrappers locking up my laptop) and the other is when i am at the office. this allows me to go in and just remove the # for the proper IP range, if i want to go static, then type the following command: Code:
ifconfig restart notice that i also have the dhcp setting line for both eth0 and wlan0 device. If i choose or need to use the local DHCP server, then i comment everything else out, and uncomment the line with the iface device inet dhcp and away i go after running the above command to restart my network. FYI if the above line does not work you should also be able to type the following: Code:
/etc/init.d/networking restart best of luck. |
All times are GMT -5. The time now is 02:54 PM. |