skip to main | skip to sidebar

Netopeak

Practical Notes

Saturday, April 11, 2009

static ip in linux

vi /etc/sysconfig/network-scripts/ifcfg-eth0


Code:
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:11:85:BC:7D:5F (YOUR NIC MAC ADDRESS)
IPADDR=111.111.111.111
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet
vi /etc/sysconfig/network


Code:
NETWORKING=yes
HOSTNAME=YOURDOMAIN.com (locoalhost.localdomain)
GATEWAY=111.111.111.111
Posted by Netopeak at 5:27 PM
Newer Post Older Post Home

Labels

  • FreeBSD

weithenn

  • weithenn
  • freebsd

Blog Archive

  • ►  2025 (36)
    • ►  July (1)
    • ►  May (9)
    • ►  April (20)
    • ►  March (1)
    • ►  February (3)
    • ►  January (2)
  • ►  2024 (4)
    • ►  August (2)
    • ►  June (1)
    • ►  May (1)
  • ►  2023 (13)
    • ►  October (1)
    • ►  September (2)
    • ►  August (1)
    • ►  March (1)
    • ►  February (4)
    • ►  January (4)
  • ►  2022 (51)
    • ►  November (7)
    • ►  September (14)
    • ►  August (30)
  • ►  2017 (3)
    • ►  June (3)
  • ►  2016 (8)
    • ►  November (7)
    • ►  October (1)
  • ►  2015 (1)
    • ►  March (1)
  • ►  2014 (1)
    • ►  May (1)
  • ►  2013 (4)
    • ►  January (4)
  • ►  2012 (2)
    • ►  April (2)
  • ►  2011 (5)
    • ►  November (1)
    • ►  June (1)
    • ►  March (3)
  • ►  2010 (2)
    • ►  October (1)
    • ►  January (1)
  • ▼  2009 (10)
    • ►  October (1)
    • ►  May (5)
    • ▼  April (3)
      • lamp/bind/ntp
      • static ip in linux
      • centos- yum
    • ►  February (1)
  • ►  2007 (92)
    • ►  November (1)
    • ►  October (1)
    • ►  September (3)
    • ►  July (20)
    • ►  June (67)

About Me

Netopeak
System/Network/Database FreeBSD/Linux/Windows C/C++/JAVA
View my complete profile