LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Re setup server name and static IP (http://www.linuxquestions.org/questions/linux-networking-3/re-setup-server-name-and-static-ip-4175437429/)

satimis 11-16-2012 08:32 AM

Re setup server name and static IP
 
Hi all,

Fedora 17 desktop 64bit

I have 2 NICs on the PC, a PCIe NIC card and an onboard NIC. The PC is now connecting the router via PCIe card and running dynamic IP.

# ifconfig
Code:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.10  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::92f6:52ff:fe03:5786  prefixlen 64  scopeid 0x20<link>
        ether 90:f6:52:03:57:86  txqueuelen 1000  (Ethernet)
        RX packets 8471  bytes 6826859 (6.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 8620  bytes 1295445 (1.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 00:0e:a6:f9:a3:5b  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 16436
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 1616  bytes 464962 (454.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1616  bytes 464962 (454.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


# cat /etc/sysconfig/network-scripts/ifcfg-eth0
Code:

UUID="c29af442-1fb3-44dc-a15a-0159397bbacd"
NM_CONTROLLED="yes"
HWADDR="90:F6:52:03:57:86"
BOOTPROTO="dhcp"
DEVICE="eth0"
ONBOOT="yes"

# cat /etc/sysconfig/network-scripts/ifcfg-eth1
Code:

UUID="7be24cfc-a805-46e1-8776-f42a927c7165"
NM_CONTROLLED="yes"
HWADDR="00:0E:A6:F9:A3:5B"
BOOTPROTO="dhcp"
DEVICE="eth1"
ONBOOT="no"

# cat /etc/sysconfig/network
Code:

NETWORKING=yes
HOSTNAME=fedora17
NTPSERVERARGS=iburst

# service --status-all
Code:

I don't know of any running hsqldb server.
netconsole module not loaded
Configured devices:
lo eth0 eth1
Currently active devices:
lo eth0 eth1
spice-vdagentd.service - LSB: Agent daemon for Spice guests
          Loaded: loaded (/etc/rc.d/init.d/spice-vdagentd)
          Active: active (exited) since Fri, 16 Nov 2012 21:10:47 +0800; 27min ago
        Process: 740 ExecStart=/etc/rc.d/init.d/spice-vdagentd start (code=exited, status=0/SUCCESS)
          CGroup: name=systemd:/system/spice-vdagentd.service

tcsd.service - LSB: Init script for TCSD
          Loaded: loaded (/etc/rc.d/init.d/tcsd)
          Active: failed (Result: exit-code) since Fri, 16 Nov 2012 21:10:47 +0800; 27min ago
        Process: 735 ExecStart=/etc/rc.d/init.d/tcsd start (code=exited, status=137)
          CGroup: name=systemd:/system/tcsd.service

Nov 16 21:10:47 fedora17 tcsd[735]: Starting tcsd: [FAILED]

I expect to set up static IP, 192.168.0.11, and use the hostname, fedora17, as server name.

# hostname
Code:

fedora17
# hostname -f
Code:

fedora17
# cat /etc/hosts
Code:

127.0.0.1                localhost.localdomain localhost
::1                localhost6.localdomain6 localhost6

Please advise how to set relevant file/files. TIA

B.R.
satimis

acid_kewpie 11-16-2012 08:36 AM

system-configure-network will let you set the static IP, and everything else is already done right?

satimis 11-16-2012 09:40 AM

Quote:

Originally Posted by acid_kewpie (Post 4830775)
system-configure-network will let you set the static IP, and everything else is already done right?

Hi,

I haven't touched any file yet.

I suppose you referred to /etc/sysconfig/network-scripts/

# ls /etc/sysconfig/network-scripts/
Code:

ifcfg-eth0  ifdown-ipv6    ifup          ifup-isdn    ifup-tunnel
ifcfg-eth1  ifdown-isdn    ifup-aliases  ifup-plip    ifup-wireless
ifcfg-lo    ifdown-post    ifup-bnep    ifup-plusb  init.ipv6-global
ifdown      ifdown-ppp    ifup-eth      ifup-post    net.hotplug
ifdown-bnep  ifdown-routes  ifup-ippp    ifup-ppp    network-functions
ifdown-eth  ifdown-sit    ifup-ipv6    ifup-routes  network-functions-ipv6
ifdown-ippp  ifdown-tunnel  ifup-ipx      ifup-sit

Which of them shall I configure? Thanks

satimis

acid_kewpie 11-16-2012 03:57 PM

You suppose wrong. I mean system-configure-network. Actually, I did get it wrong and I meant system-config-network, but still, I don't mean edit those files.


All times are GMT -5. The time now is 07:35 PM.