Problem with network configuration.
I have ran into a problem whilst following a tutorial showing me how to set up a debian server the problem I have is configuring the network. Ok I have done this so far
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
iface lo inet loopback
# The primary network interface
iface eth0 inet static
address 'set to server static ip'
network 'set to my home network'
Then restart your network:
Then edit /etc/hosts. Make it look like this:
127.0.0.1 localhost.localdomain localhost
192.168.0.100 'set to domain and server name'
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
Its now asking me to run this command but when I try to nothing happens
echo 'my server address' > /etc/hostname
> Then it says to run this command
> hostname -f
hostname command displays the hostname but when I run hostname -f it says hostname look up failure.
Is there any reason for this am I missing out a step?
The tutoril I am following is the howtoforge one.
Do you use the same IP in /etc/hosts that you use in /etc/network/interfaces?
Yep same ip address but Im going to re-install and see if I get stuck at the same place again. Then I'll repoer back
# echo [hostname] > /etc/hostname
but it's not effective until reboot.. so manually do also..
# hostname [hostname]
|All times are GMT +2. The time now is 04:53.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.