BLOGGER TEMPLATES - TWITTER BACKGROUNDS

Monday, June 22, 2009

LINUX ROUTER

1. Copy
-Fedora 8 - iso 10.1.0.11/installer (DVD)

2. What u need to have?
-at least 2 network card
-2 cross cable
-install fedora 8 (configuration)

3.What u need to do?
-set IP_forwarding
-Routing (buat routing + gw)


Example Command

root atau su
password

for cent0S (up net.card) - service network restart

for fedora - /etc/int.d/network restart
- eth0 [ok]
- eth1 [ok]
Guna GUI
-upkan eth0-network card
eth0-address=192.168.1.1
gw= xyah
subnetMask=255.255.255.0

eth1-active
-static

/sbin/ifconfig eth0 192.168.1.1 netmask 255.255.255.0
broadcast 192.168.1.255
/sbin/route add -net 192.168.1.0 netmask 255.255.255.0
gw 192.168.1.1 dev eth0
echo 1 > /proc/sys/net/ipv4/ip_forward

-ping ip gw -ping ip pc


*bila setiap kali restart network.... arahan IP_forwading perlu di run semula*
cat /proc/sys/net/ipv4/ip_forward - arahan untuk papar sama ada echo 0 atau 1. Jika 0 perlu run arahan IP_forwarding


*pc ke pc x leh link krn:
-firewall pc x off
-firewall linux pd ip table x off
-antivirus x off
-x up IP_forwarding setiap kali restart

Other Command

1.up network card
-service network
/etc/init.d/network

2.tengok routing table
/sbin/ip router show

3.tengok ada routing @ tak ada
/sbin/router -v

4.delete routing dlm routing table
/sbin/route del -net (ip)

5.up network card one by one
/sbin/ifup eth0 (enter)
/sbin/ifup eth1 (enter)

0 comments: