Thanks you.
the contents of /etc/network/interfaces:
auto eth0
iface eth0 inet dhcp
iface eth0 inet static
address 10.0.0.21
netmask 255.255.255.0
when I want to start the network, I got some warning:
roach:~# /etc/init.d/networking restart
Reconfiguring network interfaces...ifdown: failed to open statefile /etc/ne
ifup: failed to open statefile /etc/network/run/ifstate: Stale NFS file hae
failed.
I aslo use this:
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 10.0.0.21
netmask 255.255.255.0
But can not start the network.
if I run dhclient and can get IP address.
> -----Original Messages-----
> From: "David MacMahon" <[email protected]>
> Sent Time: 2019-06-20 22:26:41 (Thursday)
> To: [email protected]
> Cc: "zhang laiyu" <[email protected]>, [email protected]
> Subject: Re: [casper] ROACH Network is unreachable
>
> To further Marc’s query: when you mmcboot into the broken system, what are
> the contents of /etc/network/interfaces?
>
> Dave
>
> > On Jun 20, 2019, at 04:06, Marc <[email protected]> wrote:
> >
> >> On 6/20/19, zhang laiyu <[email protected]> wrote:
> >> Hi,Marc, Jack
> >> I make some progress but it was not solved.
> >> I boot the ROACH by 'run mmcboot' and did not got an IP address. And
> >> then log in RAOCH as root and try issuing the commands:
> >> dhclient -r
> >> dhclient
> >> ifconfig
> >> Then ROACH was assigned an ip address. And can use telnet to login
> >> ROACH.
> >> But when I reboot the ROACH, ROACH Network is still unreachable.I have
> >> to issuing the commands:dhclient again.
> >> I also open two ports ( tcp port 53 and udp port 67) in the server.But
> >> it still does not work.
> >> I think that the DHCP connection doesn't work during boot.But I do not
> >> the reason.
> >
> > So if you boot into the broken system and connect via serial cable
> > what does the output of
> >
> > /sbin/ifconfig eth0
> >
> > say ? Is there no IP address configured, or is it set to the wrong one
> > ? If it is set incorrectly there may be some startup script which has
> > some old/stale values set.
> > You could try to add a
> >
> > set -x
> >
> > to some of the startup scripts, so that they echo the commands they execute
> >
> > regards
> >
> > marc
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "[email protected]" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to [email protected].
> > To view this discussion on the web visit
> > https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAGrhWaQPV8NBHcrvV8rQaUGdyQZJTFcW5aG1Vyujrn0HcBr7xg%40mail.gmail.com.
>
> --
> You received this message because you are subscribed to the Google Groups
> "[email protected]" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/F2389975-B9E7-4BA6-B797-9D2421624736%40berkeley.edu.
--
Cheers!
>------------------------------------------------------------------------
ZHANG Laiyu
Phone(China) 010-88236415
Cellphone(China) 13681385567
E-mail: [email protected]
Address: 19B Yuquan Road,Shijingshan District,Beijing,China
Department: Center for Particle Astrophysics
Office: Astrophysics Building 205Institute of High Energy Physics,
CAS
web:
http://www.ihep.cas.cn>------------------------------------------------------------------------
--
You received this message because you are subscribed to the Google Groups
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/308856dd.3900.16b779c8676.Coremail.zhangly%40ihep.ac.cn.