1 Reply Latest reply: Mar 14, 2013 6:25 AM by Catch-22 RSS

    Assign static IP to OL Vbox

    HuaMin Chen
      Hi,
      I have 2 Adapters for the Oracle Linux 5.8 Vbox, one is Interal Network, the other Bridged Adapter.

      But when I check it within OL, I see these
      [root@localhost ~]# ifconfig
      eth0 Link encap:Ethernet HWaddr 08:00:27:C8:DF:01
      inet6 addr: fe80::a00:27ff:fec8:df01/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
      RX packets:1 errors:0 dropped:0 overruns:0 frame:0
      TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:243 (243.0 b) TX bytes:7338 (7.1 KiB)

      eth1 Link encap:Ethernet HWaddr 08:00:27:5B:48:2B
      inet addr:?.?.255.1 Bcast:?.?.255.255 Mask:255.255.240.0
      inet6 addr: fe80::a00:27ff:fe5b:482b/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
      RX packets:210 errors:0 dropped:0 overruns:0 frame:0
      TX packets:213 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:15282 (14.9 KiB) TX bytes:21911 (21.3 KiB)

      lo Link encap:Local Loopback
      inet addr:127.0.0.1 Mask:255.0.0.0
      inet6 addr: ::1/128 Scope:Host
      UP LOOPBACK RUNNING MTU:16436 Metric:1
      RX packets:11389 errors:0 dropped:0 overruns:0 frame:0
      TX packets:11389 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0
      RX bytes:15975812 (15.2 MiB) TX bytes:15975812 (15.2 MiB)

      virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
      inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
      UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0
      RX bytes:0 (0.0 b) TX bytes:3635 (3.5 KiB)

      I do accept 'eth1' as it is already the allocated IP by my ISP. How to assign one static IP, like 192.168.168.4, to eth0, and also to have the same DNS for this OL Vbox, as the Win 2008 server, that is with IP like 192.168.168.10, residing in the same network.