- 论坛徽章:
- 0
|
我有两台机器装的都是FreeBSD 4.8,其中A有双网卡,网卡为em0、fxp0,另一台机器B单网卡fxp0。
将A的em0接入公网,固定ip 218.xxx.xxx.xxx,A的fxp0设置为ip 192.168.1.254,B的fxp0网卡设置为ip 192.168.1.253。现将A的fxp0和B的fxp0连通。B开启ftp,telnet,ssh。从A可以ping到B,但telnet、ftp、ssh均无反应。ftp显示192.168.1.253Connected,就没有其他反应了。
请教各位,我想从A登陆到B(SSH),如何解决,请指教。
A机ifconfig内容:
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>; mtu 1500
options=3<rxcsum,txcsum>;
inet 218.xxx.xxx.xxx netmask 0xffffff80 broadcast 218.xxx.xxx.255
ether 00:0c:76:15:1c:92
media: Ethernet autoselect (100baseTX <full-duplex>
status: active
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>; mtu 1500
inet 192.168.1.254 netmask 0xffffff00 broadcast 192.168.1.255
ether 00:0c:76:15:1c:93
media: Ethernet autoselect (100baseTX <full-duplex>
status: active
A机rc.conf:
hostname="tierpo2.xxxx.com"
kern_securelevel_enable="NO"
linux_enable="YES"
nfs_reserved_port_only="YES"
sendmail_enable="NONE"
sshd_enable="YES"
defaultrouter="218.xxx.xxx.xxx"
ifconfig_em0="inet 218.xxx.xxx.xxx netmask 255.255.255.128"
ifconfig_fxp0="inet 192.168.1.254 netmask 255.255.255.0"
nfs_server_enable="YES"
nfs_client_enable="YES"
inetd_enable="NO"
gateway_enable="YES"
natd_enable="YES"
natd_interface="em0" |
|