Geezer
04-07-2003, 12:04 PM
Whats the command to change the network settings from the CLI
Thanks
Thanks
|
Click to See Complete Forum and Search --> : Change network settings Geezer 04-07-2003, 12:04 PM Whats the command to change the network settings from the CLI Thanks bwkaz 04-07-2003, 01:07 PM Which distro? Geezer 04-07-2003, 02:03 PM Knoppix and Red Hat raddboy 04-07-2003, 02:18 PM Try "neat" or "netconfig". homey 04-07-2003, 02:36 PM Try this for Redhat.... Set the IP address and network mask: /sbin/ifconfig -a eth0 192.168.1.2 netmask 255.255.255.0 Add the default gatway: /sbin/route add default gw 192.168.1.1 Or you can edit the file /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 USERCTL=no ONBOOT=yes BOOTPROTO=none BROADCAST=192.168.1.255 NETWORK=192.168.1.0 NETMASK=255.255.255.0 IPADDR=192.168.1.2 and the file /etc/sysconfig/network. NETWORKING=yes HOSTNAME=comp1.mydomain.com FORWARD_IPV4=yes GATEWAYDEV= GATEWAY=192.168.1.1 Edit/create the file /etc/sysconfig/network-scripts/ifcfg-eth0 to use DHCP. DEVICE=eth0 USERCTL=no ONBOOT=yes BOOTPROTO=dhcp BROADCAST= NETWORK= NETMASK= IPADDR= Edit/create the file /etc/sysconfig/network to use DHCP. NETWORKING=yes HOSTNAME= FORWARD_IPV4=yes GATEWAYDEV= GATEWAY= Restart the network to probe the DHCP server for your network settings with the command /etc/rc.d/init.d/network restart. Verify your network settings with the command /sbin/ifconfig singlespeed 04-07-2003, 02:39 PM for redhat it's # ifconfig eth0 man ifconfig for info... justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |