Home Posts tagged "alias ip"
formats

FreeBSD IP Alias: Setup 2 or More IP address on One NIC

Published on 15/02/2009 by in FreeBSD

ขี้เกียจพูดมาก บรรเลงเลยแล้วกัน ตัวอย่าง Interface name: bge0 – IP : 192.168.1.1/255.255.255.0 Interface name: bge0 alias – IP : 192.168.1.5/255.255.255.255 ขั้นแรก login เป็น root ก่อน แล้วพิมพ์คำสั่งว่า # ifconfig bge0 192.168.1.5 netmask 255.255.255.255 alias จากนั้นเพิ่มเติม ข้อความตามนี้ลงใน /etc/rc.conf ifconfig_bge0_alias0=”192.168.1.5 netmask 255.255.255.255″ บันทึกและออกจาก โปรแกรม จากนั้นสั่ง # /etc/rc.d/netif restart && /etc/rc.d/routing restart เป็นอันเสร็จพิธี ลองสั่ง ifconfig ดู จะได้ ip เพิ่มมาอีกชุด

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments