Yes there is already a /tmp directory but there is no
hosts file or folder inside of it.
Date: Fri, 15 Jul 2011 09:35:31 +0600
From:
address@hidden
To:
address@hidden
Subject: Re: [Ltib] Linux 2.6.34.6 ping setup
15.07.2011 4:56, simran gill пишет:
Hello,
I am running Linux 2.6.34.6 on p4080ds board. I am trying to
get
the interfaces running on the kernel but it does not seem to be
working. So far I am able to set up the ipaddress etc for the interface
"fm1-gb1" but still cannot ping the outside world. I edited the file
/etc/rc.d/rc.conf with no luck.
My configuration is as follows:
address@hidden
rc.d]#
vi rc.conf
export HOSTNAME="p4080"
export NTP_SERVER=""
export MODLIST=""
export RAMDIRS=""
export TMPFS="tmpfs"
export TMPFS_SIZE="512k"
export READONLY_FS=""
export INETD_ARGS=""
export BOA_ARGS="-c /etc"
export SMBD_ARGS=""
export NMBD_ARGS=""
export DHCP_ARG=""
export DEPLOYMENT_STYLE="RAMDISK"
export SYSCFG_DHCPC_CMD="udhcpc -b -i "
export DROPBEAR_ARGS=""
export SYSCFG_IFACE0=y
export INTERFACE0="fm1-gb1"
export IPADDR0="192.168.1.145'
export NETMASK0="255.255.255.0"
export BROADCAST0="192.168.1.255"
export GATEWAY0="192.168.1.1"
After restarting the rcS script::
address@hidden rc.d]# sh /etc/rc.d/rcS restart network
Running sysctl
Setting up networking on loopback device:
SIOCADDRT: File exists
Setting up networking on fm1-gb1:
Adding static route for default gateway to 192.168.1.1:
/etc/rc.d/init.d/network: line 90: cannot create tmp/hosts: nonexistent
directory
mv: cannot rename '/tmp/hosts': No such file or directory
Do you have a /tmp directory at boards filesystem?
address@hidden
rc.d]#
ifconfig
fm1-gb1 Link encap:Ethernet HWaddr 00:04:9F:02:01:FD
inet addr:192.168.1.145 Bcast:192.168.1.255
Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:238 (238.0 b)
Memory:fe4e2000-fe4e2fff
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
address@hidden rc.d]#
Thank
you
in advance for any help.
_______________________________________________
LTIB home page: http://ltib.org
Ltib mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/ltib
--
Сергей Аблалимов
ОАО Такт (342)220-19-28
_______________________________________________
LTIB home page:
http://ltib.org
Ltib mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/ltib