Hi All,
Can anyone provide advice on how to bring up networking in Single User Mode?
I need to specify an IP, mask, gateway and bring up the adaptor so I can ssh into another machine to transfer files to it.
-ML
ML wrote:
Hi All,
Can anyone provide advice on how to bring up networking in Single User Mode?
I need to specify an IP, mask, gateway and bring up the adaptor so I can ssh into another machine to transfer files to it.
ifconfig ethX IP_ADDRESS netmask NETMASK route add default gw IP_OF_GATEWAY
nate
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
thus ML spake:
Nate,
ifconfig ethX IP_ADDRESS netmask NETMASK route add default gw IP_OF_GATEWAY
OK, so I was correct,
I am doing
ifconfig eth0 172.16.254.80 netmask 255.255.255.240 route add default gw 172.16.254.1
I am getting Network is unreachable.
-Jason
Try 'ifconfig eth0 172.16.254.80 netmask 255.255.255.240 up' or, after you already issued those commands, a simple 'ifconfig eth0 up'.
HTH,
Timo
-----BEGIN PGP SIGNED MESSAGE----- thus ML spake:
Nate,
ifconfig ethX IP_ADDRESS netmask NETMASK route add default gw IP_OF_GATEWAY
OK, so I was correct,
I am doing
ifconfig eth0 172.16.254.80 netmask 255.255.255.240 route add default gw 172.16.254.1
I am getting Network is unreachable.
Try 'ifconfig eth0 172.16.254.80 netmask 255.255.255.240 up' or, after you already issued those commands, a simple 'ifconfig eth0 up'.
I've always liked ifup eth<x>
mark
On Wed, Oct 7, 2009 at 3:28 PM, ML mailinglists@mailnewsrss.com wrote:
Nate,
ifconfig ethX IP_ADDRESS netmask NETMASK route add default gw IP_OF_GATEWAY
OK, so I was correct,
I am doing
ifconfig eth0 172.16.254.80 netmask 255.255.255.240 route add default gw 172.16.254.1
I am getting Network is unreachable.
That's correct. Write down 80, 1 and 240 in binary. With a /28 mask, your IP address and your gateway are in different subnets.
Am Mittwoch, den 07.10.2009, 20:28 +0200 schrieb ML:
Nate,
ifconfig ethX IP_ADDRESS netmask NETMASK route add default gw IP_OF_GATEWAY
OK, so I was correct,
I am doing
ifconfig eth0 172.16.254.80 netmask 255.255.255.240 route add default gw 172.16.254.1
I am getting Network is unreachable.
ipcalc -nbp 172.16.254.80 255.255.255.240 PREFIX=28 BROADCAST=172.16.254.95 NETWORK=172.16.254.80
so 172.16.254.1 is not in your network and thus not reachable
financial.com AG
Munich head office/Hauptsitz München: Maria-Probst-Str. 19 | 80939 München | Germany Frankfurt branch office/Niederlassung Frankfurt: Messeturm | Friedrich-Ebert-Anlage 49 | 60327 Frankfurt | Germany Management board/Vorstand: Dr. Steffen Boehnert | Dr. Alexis Eisenhofer | Dr. Yann Samson | Matthias Wiederwach Supervisory board/Aufsichtsrat: Dr. Dr. Ernst zur Linden (chairman/Vorsitzender) Register court/Handelsregister: Munich – HRB 128 972 | Sales tax ID number/St.Nr.: DE205 370 553
ifconfig eth0 172.16.254.80 netmask 255.255.255.240 route add default gw 172.16.254.1
I am getting Network is unreachable.
ipcalc -nbp 172.16.254.80 255.255.255.240 PREFIX=28 BROADCAST=172.16.254.95 NETWORK=172.16.254.80
so 172.16.254.1 is not in your network and thus not reachable
And I'm a dunce cap...sorry 255.255.255.0 should be the mask!
Thanks for the math lesson!
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jason,
172.16.254.1 is not in the same subnet as 172.16.254.80 when you use a netmask of 255.255.255.240. You would need to use a larger netmask. 255.255.255.128 would be the smallest netmask you could use to enable you to locally reach 172.16.254.1.
More information on subnetting and CIDR: http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing
ML wrote:
Nate,
ifconfig ethX IP_ADDRESS netmask NETMASK route add default gw IP_OF_GATEWAY
OK, so I was correct,
I am doing
ifconfig eth0 172.16.254.80 netmask 255.255.255.240 route add default gw 172.16.254.1
I am getting Network is unreachable.
-Jason _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
- -- Thank you, Preston Connors Atlantic.Net
ML wrote:
Hi All,
Can anyone provide advice on how to bring up networking in Single User Mode?
I need to specify an IP, mask, gateway and bring up the adaptor so I can ssh into another machine to transfer files to it.
You could also probably do /etc/init.d/network start
my first post would be for the old fashioned way
nate