Re: linux IP address (change)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Matthew Benjamin wrote:


On 8/23/06, *Brad Bonkoski* <bbonkoski@xxxxxxxxxxxxxx <mailto:bbonkoski@xxxxxxxxxxxxxx>> wrote:



    Ankush Grover wrote:
    > On 8/23/06, Matthew Benjamin <msbenjamin12@xxxxxxxxx
    <mailto:msbenjamin12@xxxxxxxxx>> wrote:
    >> What is the easiest way from command line to set or change the IP
    >> address of
    >> a linux box (FC4)?
    >>
    >> --
    > edit this file
    >
    > /etc/sysconfig/network-scripts/ifcfg-eth0 (for eth0) and change the
    > value of IPADDR to whatever address you want to put
    >
    > for example
    > IPADDR=192.168.1.125 <http://192.168.1.125>
    >
    > Regards
    >
    > Ankush Grover
    >
    The above will make the setting permanent (of course you will also
    have
    to run:
    /sbin/ifconfig eth0 down
    /sbin/ifconfig eth0 up


    if you just want to *test* a new setting (i.e. not permanent)
    /sbin/ifconfig eth0 192.268.1.111 netmask 255.255.255.0
    <http://255.255.255.0>
    is the command.
    -B

    --
    fedora-list mailing list
    fedora-list@xxxxxxxxxx <mailto:fedora-list@xxxxxxxxxx>
    To unsubscribe:
    https://www.redhat.com/mailman/listinfo/fedora-list
    <https://www.redhat.com/mailman/listinfo/fedora-list>


can you add a switch to the ifconfig command to make it permanent?

--
mB.
I would say 'no', but man ifconfig would be more authoritative.

Keeping the settings requires the update of the file mentioned by the other poster. And ifconfig *reads* this file, I don't believe it writes to it though. Redhat has their customary system-config-* utils the network flavors probably write to that file, but not sure if they work from the command line.


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux