- 论坛徽章:
- 0
|
20可用积分
很老的Ultra 10 的机器, Solaris 2.5.
hme0
IP: 192.9.200.1
Hostname: adac
Netmask: 255.255.255.0
Defaultrouter: 192.9.200.211
现在想添加一块网卡, 拟用IP 10.33.35.113, router 10.33.35.65, 插进后用dmesg 查看, 是hme2;
ifconfig hme2 plumb
ifconfig hme2 10.33.35.113 netmask 255.255.255.192
ifconfig hme2 up
ifconfig –a
hme0 ……………………….
inet 192.9.200.1, netmask ffffff00, BROADCAST 192.9.200.255
ether 8:0:20:9f:fb:e3
hem2 ………………………..
inet 10.33.35.113 netmask ff000000 BROADCAST 10.255.255.255
ether 8:0:20:9f:fb:e3
修改/etc/hosts, 添加:
10.33.35.113 adac-out
添加/etc/hostname.hme2 文件, 内容 adac-out
route –f
default 192.9.200.211 done
route add 10.33.35.113 10.33.35.65
route –f
default 192.9.922.211 done
adac_out 10.33.35.65 done
在/etc/init.d下添加文件addroute, 内容:
#!/bin/sh
ifconfig hme2 10.33.35.113 netmask 255.255.255.192 up
route 10.33.35.113 10.33.35.65
ln –s /etc/init.d/addroute /etc/rc2.d/S94ADDROUTE
重启后, 可以ping通adac和adac-out, 可以ping通192.9.200 subnet的其他机器, ping 不通外面, ping 不通10.33.35 subnet的其他机器.
哪位能指教一下问题出在哪儿呢? 谢谢 |
|