“Karena..hidup adalah soal keberanian, terimalah dan hadapilah..”

Mei 18, 2008

simple router configuration using FreeBSD

Filed under: Linux — ariee @ 11:45 am

Artikel bersumber dari laluvirtual.web.id

HARDWARE INFO:
rl0 – NIC facing the 192.168.0.0 network
xl0 – NIC facing the 192.168.1.0 network
xl1 – NIC facing the modem
tun0 – The virtual NIC used by PPP, facing the outside

SECTION 1: PRELIMINARY SETUP

  1. Install FreeBSD
  2. Enable the rl0 network card and give it an address by adding the following line to /etc/rc.conf
    this is a temporary address, and we’re doing this so we can log into the computer via SSH for convenience.

            ifconifg_rl0="inet 192.168.0.10 netmask 255.255.255.0"
  3. Enable the xl0 network card and give it an address by adding the following line to /etc/rc.conf
            ifconifg_xl0="inet 192.168.1.1 netmask 255.255.255.0"
  4. Set the defaultrouter in /etc/rc.conf to the address of the existing router:
            defaultrouter="192.168.0.1"
  5. Set the nameserver in resolv.conf to the address of the exisitng name server:
            nameserver  192.168.0.1
  6. In /etc/rc.conf enable the gateway function of FreeBSD by adding this line:
            gateway_enable=YES 
    

(more…)

Iklan

Buat situs web atau blog gratis di WordPress.com.