- 论坛徽章:
- 0
|
# more /etc/rc.conf
# -- sysinstall generated deltas -- # Mon Oct 6 16:05:18 2008
# Created: Mon Oct 6 16:05:18 2008
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
defaultrouter="192.168.21.1"
hostname="aaa.aaa"
ifconfig_le0="inet 192.168.21.254 netmask 255.255.255.0"
keymap="us.iso"
linux_enable="YES"
sshd_enable="YES"
apache22_enable="YES"
ifconfig_le1="inet 192.168.21.200 netmask 255.255.255.0"
# netstat -r
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.21.1 UGS 0 3 le0
localhost localhost UH 0 0 lo0
192.168.21.0 link#1 UC 0 0 le0
192.168.21.1 00:1d:0f:61:a1:cc UHLW 2 0 le0 1200
Internet6:
Destination Gateway Flags Netif Expire
localhost localhost UHL lo0
fe80::%lo0 fe80::1%lo0 U lo0
fe80::1%lo0 link#4 UHL lo0
ff01:4:: fe80::1%lo0 UC lo0
ff02::%lo0 fe80::1%lo0 UC lo0
怎么指定下面这条路由的设备,就是把default的le0改成le1
default 192.168.21.1 UGS 0 3 le0
[ 本帖最后由 fzfwqj 于 2008-10-17 17:24 编辑 ] |
|