Changes

From SME Server
Jump to navigationJump to search
7 bytes removed ,  22:51, 22 January 2013
Line 70: Line 70:  
or if you want to assign a IP address yourself.
 
or if you want to assign a IP address yourself.
 
<syntaxhighlight lang="Bash">
 
<syntaxhighlight lang="Bash">
ifconfig eth0 192.168.1.2
+
ifconfig eth0 192.168.1.2
echo "nameserver 192.168.1.254" >> /etc/resolv.conf
+
echo "nameserver 192.168.1.254" >> /etc/resolv.conf
route add default gw 192.168.1.254 eth0
+
route add default gw 192.168.1.254 eth0
 
</syntaxhighlight>  
 
</syntaxhighlight>  
    
To make your changes permanent you will need to edit the configuration file to make it active on boot. There is only the vi text editor, you can also install nano.  
 
To make your changes permanent you will need to edit the configuration file to make it active on boot. There is only the vi text editor, you can also install nano.  
<syntaxhighlight lang="Bash">
+
<syntaxhighlight lang="Bash">
yum install nano
+
yum install nano
nano /etc/sysconfig/network-scripts/ifcfg-eth0
+
nano /etc/sysconfig/network-scripts/ifcfg-eth0
and set ONBOOT=”YES”
+
and set ONBOOT=”YES”
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Navigation menu