70 likes | 230 Views
實驗十六 Linux 路由器 : 建構、測試與追蹤. 教師: 助教:. Outline. Build Linux router Linux Kernel Debugger - KDB Quagga Router Daemon. Building Linux Router(1/2). top-down step by step remove what you don’t need remove redundant package.rpm –e XXX bottom-up customize it by systematic script.
E N D
實驗十六Linux路由器:建構、測試與追蹤 教師: 助教:
Outline • Build Linux router • Linux Kernel Debugger - KDB • Quagga Router Daemon
Building Linux Router(1/2) • top-down • step by step remove what you don’t need • remove redundant package.rpm –e XXX • bottom-up • customize it by systematic script
Building Linux Router(2/2) • Construct basic router • Install two NIC card to the PC • Enable forwarding function
Linux Kernel Debugger - KDB • Patch Linux Kernel • download a patch of corresponding kernel version • patch your kernel • Trace kernel flow • bp : set break point • ss : Single Step • ssb : Single step to branch/call
Quagga Router Daemon(1/2) • A routing software • Providing implementations of • OSPFv2 • OSPFv3 • RIP v1 and v2 • RIPng • BGP-4
Quagga Router Daemon(1/2) • Install quagga-0.99.4-1.fc5.i386.rpm with rpm • Configure zebra.conf • Starting zebra daemon • Configure RIPD daemon • Configure ripd.conf • Starting ripd daemon