Changes

Jump to navigation Jump to search
99 bytes added ,  22:51, 22 January 2013
→‎Enable networking: Syntax highlight
Line 69: Line 69:     
or if you want to assign a IP address yourself.
 
or if you want to assign a IP address yourself.
 +
<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>
 +
 
 
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">
 
  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>
    
For the current purposes I decided to start manually each time so I that left the base settings as untouched as possible.
 
For the current purposes I decided to start manually each time so I that left the base settings as untouched as possible.

Navigation menu