Java Application that we are currently using, read the IP information via using sigar library(sigar.getNetInterfaceConfig()
when we use the sigar.getNetInterfaceConfig(), it brings Primary Network Interface from the
server, and this is the problem for us.
we are using Centos server now and connected with 2 of network which are eth0, eth1.
we need to gather the IP from etho0, however in sigar, it brings the ip from eth1.
It seems that primary IP of current server set as eth1.
Therefore, we were looking for answer to modify primary IP at Centos, but could not find yet.
We really want to know how to modify or set up primary IP at Centos.
Thanks for reading such a long story from us.
Regards,
Kihong, Ko
ps. i used CentOS6
Hi,
I tried to configure my ethernet interface on a Debian Wheezy VM, but I've a problem. When I try to restart /etc/init.d/networking, I've no error message.
But my eth1 interface isn't up and when I try to up it with : ifup eth1, it return me :
Code:
root@debian-main:/# ifup eth1
RTNETLINK answers: File exists
Failed to bring up eth1
My /etc/network/interface file is :
Code:
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
iface eth1 inet static
address 192.168.10.1
netmask 255.255.255.0
gateway 192.168.10.254
Eth0 is my internet interface and eth1 is a local interface. I want to install a DNS and a DHCP server on eth1 to be able to connect client with this VM and give them an ip adress.
Thanks guys
Hi All,
Is there a way to mirror plesk mail server with another mail server like primary and secondary. The primary will be in our location with different IP address and the secondary will be with plesk with existing IP address but the domain name should be the same like how gmail has multiple IP addresses on different servers/locations. This is for high availability and to reduce the network bandwidth i.e if any of the server goes down we can still send/receive mails from another and when the server comes online which was offline then all mails should be replicated with each other i.e if primary was down then all new mails should be synced from secondary or if secondary was down then the sync should be from primary. Other thing is since primary will be with us, it will be much faster than secondary(plesk) in sending/receiving the mails. So expecting your kind help about the steps or url links to acheive the same as I don't have much experience on this. The present mail server using qmail on rhel 6.5 64 bit.
Hi
We are going to move some servers from one location to another. How to verify whether the cables are connected to the right interface port?
like one server has eth0 active and eth1 is down. now if the tech guys connect the cable on eth1 port then how to know that
Is it /sys/class/net/eth1 and look for carrier or there is a better way ?
thanks in advance
Hi all,
I have a host#1 with ip=192.168.3.100 and a host#2 with ip=192.168.2.100. Both hosts are connected to some linux device with 2 interfaces : eth0 with ip=192.168.2.1 and eth1 with ip=192.168.3.1.
So host#1 is connected to eth1 and host#2 to eth0. I would like to ping host#2 from host#1 and vice versa. How can I do that ?
I tried :
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
but it didn't work
PS
This is my first post here, so please don't be very strict to me
Looking forward to hearing from anybody as I'm out of ideas...
BR,
Dmitry
Hi all, I am working on configuring icehouse on centos 6.6 and I am facing following issues on compute node, I am unable to start services (openstack-nova-{compute,network,api,metadata-api}) as it says pid file exists but it is dead, on compute node I have two interfaces eth0 and eth1 where eth0 is management network and eth1 is external and IP is unplumbed on it, I am unable to get logs in /var/log/nova directory, can someone let me know what am I doing wrong.
Thanks
hello,
i am using slackware 14.1 and my partition table is given below
Code:
sda1 Primary ext4 60003.42
sda2 Primary swap 8998.46
sda3 Primary ext4 119998.61
Logical Free Space 0.10*
sda5 NC Logical Linux 120739.34*
sda6 NC Logical ntfs 190356.39*
Logical Free Space 11.56
and i want to change
Code:
sda5 NC Logical Linux 120739.34*
Logical to primary partition.i don't know how to do it.i searched over internet but i can't understand could u any body please guide me how to do it.Thanks in advance.
Dear Friends ,
One of My linux server , I have 4 NIC card . I plugged a network cable one of NIC card . Now How can I understand which interface (eth0 or eth1 or eth2 or eth3) is connected with the cable ?
Which command I need to use to find it ?
My second question is :
using 'ethtool ' output I got a line : "Link detected : yes"
what does it means ?
Hey,
My PC has 298 GB of which approximately 179 GB is unallocated. The remaining estimated 119 GB is being used by two distro's: PCLinuxOS and Manjaro 0.8.12
When I have tried to add a new distro, having plenty of free space, I usually get a message telling me I can not proceed further due to my having four primary partitions.
I have a Swap partition of sufficient size to handle multiple distros almost 10 GB.
I installed PCLOS first and then Manjaro. I gave each approximately 12 GB for their 'Root' (/) Their Home (/home) partition was roughly 40 GB each.
{/dev/sda1 swap /dev/sda2 Extended (/dev/sda5, dev/sda6) "PCLinuxOS" /dev/sda3. /dev/sda4 "Manjaro 0.8.12"
For /dev/sda 5 & 6 I used 'Reiserfs' file system. For /dev/sda 3 & 4, I used Ext4.}
The way I look at it my root and home partitions are 'primary' thus taking up the four primary allowed. I seem ti either recall or seen somewhere, that beside 'Primary there was something called 'Logical'
Starting with PCLinux as a base could I make a new installation of Manjaro where (/) would be Primary and (/home) would be Logical?
Or would I need to start totally over with fresh installs of both Manjaro ant PCLinux?? Then make (/) primary and (/home) logical?
Would such a move allow me to install additional distros?
A thought could I make the changes in Gparted while keeping the distros as they are, just making the changes [primary & logical?]
TIA
herakles_14
I have a number of CentOS 7 VMs and there is only one that won't automatically connect to the wired network.
Thru the gui (Gnome 3.8.4), I found the checkbox to automatically connect it, however I would like to know what file to modify in the future for my learning experience.
I was not able to find the file to modify. I looked under /etc/sysconfig/network-scripts.
thanks
Hello All;
I am building a Linux media server in my home and I am new to Linux.
Right now I am at the point where I am partitioning and formatting each of my 4TB drives.
I ran sudo parted on /etc/sdb
Then I set mklabel to gpt.
Now my question is about mkpart.
In order to use the full 4TB disk for data (Only one partition)
Do I set mkpart primary 0GB 3725GB
or
do I set mkpart primary 0GB 4000GB?
I don't want to enter a larger capacity than my disk will allow but I also want to be sure I am taking advantage of all of the available space.
Thanks.
Tim