if you want to configure DHCP address you need to edit file configuration is
edit file configuration is
#vi /etc/network/interfaces
# primary network interface is eth0 (Lan Card)
auto eth0
iface eth0 inet dhcp
Configuring Static IP Address for your Network Card
edit file configuration is
#vi /etc/network/interfaces
# The primary network interface
auto eth0
iface eth0 inet static
address 172.16.0.110
gateway 172.16.0.1
netmask 255.255.255.0
network 172.16.0.0
broadcast 172.16.0.255
After entering all the detail you need to restart networking services using the following command
# /etc/init.d/networking restart
Setting up Second IP address or Virtual IP address in Ubuntu
edit file configuration is
#vi /etc/network/interfaces
auto eth0:1
iface eth0:1 inet static
address 192.168.1.60
netmask 255.255.255.0
network x.x.x.x
broadcast x.x.x.x
gateway x.x.x.x
Setting up DNS
edit file configuration is
#vi /etc/resolve.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
No comments:
Post a Comment