Quantcast
Channel: FedoraForum.org
Viewing all articles
Browse latest Browse all 36167

How to set static IP and server name

$
0
0
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

Viewing all articles
Browse latest Browse all 36167

Trending Articles