Site Tools


server:linux_network_commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
server:linux_network_commands [2012/12/02 23:10] – ashleyserver:linux_network_commands [2015/11/01 11:19] (current) – ashley
Line 8: Line 8:
 Assign IP: ifconfig eth0 192.168.1.2 Assign IP: ifconfig eth0 192.168.1.2
  
-Change to dhcp:+===== Change to dhcp: ===== 
   vi /etc/sysconfig/network-scripts/ifcfg-eth0   vi /etc/sysconfig/network-scripts/ifcfg-eth0
  
Line 15: Line 16:
   HWADDR=00:19:D1:2A:BA:A8   HWADDR=00:19:D1:2A:BA:A8
   ONBOOT=yes   ONBOOT=yes
 +
 +===== set to static =====
 +  DEVICE="eth0"
 +  BOOTPROTO="static"
 +  HWADDR="00:0C:29:D7:CD:F2"
 +  IPADDR=192.168.2.9
 +  NETMASK=255.255.255.0
 +  GATEWAY=192.168.2.1
 +  ONBOOT="yes"
  
 Save and close the file. Just restart network service: Save and close the file. Just restart network service:
Line 66: Line 76:
  
  
 +=====Check Linux Install===== 
 +  cat /etc/*-release
server/linux_network_commands.1354489855.txt.gz · Last modified: (external edit)