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,
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,
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
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 ?
Hello,
I can't get nfsd start at boot on openwrt linux.
I followed this guide:
http://wiki.openwrt.org/doc/howto/nfs.server
but when I turn the computer on:
Code:
root@OpenWrt:~# showmount -e localhost
clnt_create: RPC: Program not registered
Code:
root@OpenWrt:~# dmesg | tail
[ 22.252000] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 24.228000] eth1: link UP - 100/full - flow control off
[ 24.244000] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 30.124000] svc: failed to register nfsdv3 RPC service (errno 5).
[ 31.588000] device eth1 entered promiscuous mode
[ 31.596000] br-lan: port 1(eth1) entered forwarding state
[ 31.600000] br-lan: port 1(eth1) entered forwarding state
[ 31.652000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 31.684000] eth1: link UP - 100/full - flow control off
[ 33.604000] br-lan: port 1(eth1) entered forwarding state
but if I do
Code:
root@OpenWrt:~# /etc/init.d/nfsd start
root@OpenWrt:~# showmount -e localhost
Export list for localhost:
/mnt/3tb *
so it works well, but I look at dmesg
Code:
root@OpenWrt:~# dmesg | tail
[ 24.228000] eth1: link UP - 100/full - flow control off
[ 24.244000] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 30.124000] svc: failed to register nfsdv3 RPC service (errno 5).
[ 31.588000] device eth1 entered promiscuous mode
[ 31.596000] br-lan: port 1(eth1) entered forwarding state
[ 31.600000] br-lan: port 1(eth1) entered forwarding state
[ 31.652000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 31.684000] eth1: link UP - 100/full - flow control off
[ 33.604000] br-lan: port 1(eth1) entered forwarding state
[16642.280000] svc: failed to register lockdv1 RPC service (errno 124).
I tried several times
Code:
root@OpenWrt:~# /etc/init.d/portmap enable
root@OpenWrt:~# /etc/init.d/nfsd enable
and reboot but, again, I have to start nfsd manually after every reboot.
What am I doing wrong? On Attitude Adjustment I never had any issue.
Please help!
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
Hey All,
Is there a way to present a path or other block device to a USB port on a Linux server then have that port connected to a USB port of another device (ie USB to USB) and have it look like a flash disk?
I can plug a USB flash disk to a router just fine. But if I wanted a device to access a path off of another device int he absence of NFS or CIFS capability, that would be handy.
In other words, anyway to assign storage to a USB port in Linux? It would be akin to something like SAN with a target and source just with USB.
Cheers,
DH
I am trying to set up a "Proxy Server" in Linux, without using Squid (Part of my project). However I have beginner's knowledge of iptables. I am using the following script from "http://www.aboutdebian.com/proxy.
#!/bin/sh
INTIF="eth1"
EXTIF="eth0"
EXTIP="`/sbin/ifconfig eth0 | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'`"
/sbin/depmod -a
/sbin/modprobe ip_tables
/sbin/modprobe ip_conntrack
/sbin/modprobe ip_conntrack_ftp
/sbin/modprobe ip_conntrack_irc
/sbin/modprobe iptable_nat
/sbin/modprobe ip_nat_ftp
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4/ip_dynaddr
iptables -P INPUT ACCEPT
iptables -F INPUT
iptables -P OUTPUT ACCEPT
iptables -F OUTPUT
iptables -P FORWARD DROP
iptables -F FORWARD
iptables -t nat -F
iptables -A FORWARD -i $EXTIF -o $INTIF -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT
iptables -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE
Question is there is no packet forwarding from eth1 to eth0 (verified from wireshark, a windows is using eth1's ip address as its default gateway)
Any help would be highly appreciated!
Hello, My issue is very common but, not able to resolve it.
Issue I am facing with my Linux (RHEL-5 32-bit) machine, where I am not able to connect to internet.
DWR-113 - D-Link Router is configured for 3G dongle (Vodafone India) - This setup is done via WiFi and not using the provided LAN cable from Win7 machine.
Internet is working absolutely fine in case of Wireless but, at same time when LAN cable is used internet is not working. [Able to ping to Router IP i.e. 192.168.0.1)
Similarly, from Linux box, ping to Router IP is working [LAN plugged] but, Internet not working. IP of linux machine: 192.168.0.60
Also, able to get the console connection of Linux from Windows box..[Windows connected to Router via WiFi and Linux connected to Router via LAN cable]
Please suggest how to get rid of this problem so that Internet will work on Linux via LAN cable.
Many Thanks,
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
I will be setting up a few raspberry pi's in various locations, and they will be creating reverse nat ssh tunnels to my ssh server.
I need to set up a monitoring server at the server's location to monitor the raspberry pi's through the ssh server. The monitoring agent that will be installed on the raspberry pi's is communicating with the monitoring server on port 4700.
My question is:
Since I am using reverse nat ssh tunnels to connect on the ssh server, I am guessing that port 4700 will not be opened. If this is true, is there a way to also open port 4700 in that tunnel, so the monitoring server can access the remote agent?
Thanks