IP Statik

  1. Sebagai pengguna root, pasang resolvconf
    # apt-get install resolvconf
  2. Periksa port yang ada
    # ifconfig -a
    eth1 Link encap:Ethernet HWaddr 00:0c:29:47:ac:f0
    inet addr: Bcast: Mask:
    inet6 addr: fe80::20c:29ff:fe47:acf0/64 Scope:Link
    RX packets:4498 errors:0 dropped:0 overruns:0 frame:0
    TX packets:3871 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:503062 (503.0 KB) TX bytes:477625 (477.6 KB)

    lo Link encap:Local Loopback
    inet addr: Mask:
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:123 errors:0 dropped:0 overruns:0 frame:0
    TX packets:123 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:11554 (11.5 KB) TX bytes:11554 (11.5 KB)

  3. Biasanya port RJ45 bermula dengan eth. Guna mii-tool untuk memeriksa sambungan
    # mii-tool eth1
    eth1: negotiated 1000baseT-FD flow-control, link ok
  4. Edit /etc/network/interfaces
    auto lo
    iface lo inet loopback
    auto eth1
    iface eth1 inet static
  5. Mulakan semula servis rangkaian
    # /etc/init.d/networking restart
  6. Digg This
    Reddit This
    Stumble Now!
    Buzz This
    Vote on DZone
    Share on Facebook
    Bookmark this on Delicious
    Kick It on DotNetKicks.com
    Shout it
    Share on LinkedIn
    Bookmark this on Technorati
    Post on Twitter
    Google Buzz (aka. Google Reader)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.