Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

Linux 網卡安裝完整指南(下):多網卡配置與網路管理工具

編輯:Linux 教學

接續上篇內容,本文將說明第二張網卡的驅動配置、常用網路參數設定工具,助您完成多網卡環境部署。

步驟四:驅動第二張網卡

同樣修改 /etc/conf.modules 即可。關鍵在於使用 -o 選項為每個模組實例指定唯一名稱,避免衝突。

同型號雙網卡範例(兩張 3c501)

alias eth0 3c501
alias eth1 3c501
options eth0 -o 3c501-0 io=0x280 irq=5
options eth1 -o 3c501-1 io=0x300 irq=7

-o 為每個實例命名;irq 指定硬體中斷號。若模組接受多組 I/O 值(逗號分隔),雖可不加 -o 重複載入兩次,但會降低效率。

不同型號雙網卡範例(3c503 + SMC Elite16 wd8013)

alias eth0 wd
alias eth1 3c503
options wd io=0x280
options 3c503 io=0x350

步驟五:網卡設定工具總覽

驅動載入後需設定網路參數,Linux 提供多種工具:

工具說明
netconf主要網路參數設定工具,支援文字選單與 X Window 圖形介面
netconfigSlackware 專用互動式問答介面設定程式
ifconfig最常用的網路裝置顯示與設定指令
route查看與設定路由表,實現跨網段通訊

route 實用指令範例

典型情境:本機在區域網路中,需透過閘道器存取 Internet,須將閘道 IP 設為預設路由。

# 新增預設路由
route add 0.0.0.0 gw 閘道器IP

# 刪除預設路由
route del 0.0.0.0 gw 閘道器IP

# 顯示目前路由表
route

以上即為在 XteamLinux 4.0 上配置網卡的完整流程,包含單/多網卡驅動與基礎網路參數設定,希望能協助您順利完成部署。

Copyright © Windows教程網 All Rights Reserved