Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I want to configure my lan interface of the router with 2 IP address.
My router has OpenWRT as firmware
How to edit my openwrt config file inorder to have 2 ip address on the same lan interface?
ifconfig is a quite deprecated tool.
Today we have iproute2 suite which, for many reasons, is much better than ifconfig&co.
For example with iproute2 you don't have to use the "trick" of a virtual interface to have more the one ip address on the same physical interface:
ip addr add IP dev eth0
As you have tagged "linux" in your question, I guess OpenWRT is Linux based.
On Linux, you can do aliases to your eth0 interface. For example, to add an IP to an existing eth0 interface which has already one configured IP, you can do something like:
# ifconfig eth0:1 newIP ... rest of parameters ... (from root)
It would help if you add a sample of your configuration file to the question.
Related
Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 months ago.
Improve this question
I was wondering is it possible to create a veth interface and connect it directly to physical interface of NIC? I see most of the online solutions using bridges, however I am curious if it would be possible to bypass them for simple connection.
These are the some commands I tried to achieve this, but received error:
sudo ip link add veth1 type veth
sudo ip link set veth1 master ens3f0np0
(ens3f0np0 being physical interface)
Error I received after second command was: RTNETLINK answers: Operation not supported
It seems that MACVLAN would be solution needed for this scenario.
Following is a helpful link:
Red Hat MACVLAN explanation
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 6 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I am trying to remotely access a virtual box remotely. Because this is a virtualbox hosted on a windows machine, it does not have it's own IP address to use for SSH login. I have tried changing the network settings to Bridge Adapter to get an IP, but nothing has worked. Are there some steps I am missing, or what else can I do to SSH into the box? Thanks.
If you were using the NAT mode before and you have no reason to change it other then the SSH, you can do it in that mode. Just expand the advanced settings in the network configuration and create a port forwarding rule for the port 22. Then you will be able to SSH to the VM by using the host's ip address.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 7 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
here is my question:
I create vlan device eth0.10 and veth-pair(if_in and if_out) on Centos ,how to connetc eth0.10 to if_in ??
ip link add link eth0 name eth0.10 type vlan protocol 802.1Q id 100
ip link add name if_in type veth peer name if_out
I am not very understanding linux virtual network.Is there any way can solve this problem ?
I really appreciate it
You can use a virtual switch or bridge as described in this page.
Although the page used network namespace, the basic idea is still adding eth0.10 and if_in into the same vswitch/bridge and let the openvswitch/linux bridge do the work.
one example using linux bridge:
# create the switch
BRIDGE=br-test
brctl addbr $BRIDGE
brctl stp $BRIDGE off
ip link set dev $BRIDGE up
brctl addif br-test eth0.10
brctl addif br-test if_in
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
Scenario: Main Linux Server is Connected to Local Switch Gateway. From Gateway to the network.
Now i can able to get the IP of the Remote Clients/Users who logged into the Server.
Linux Command : *"who -u" (gives me the IP Address of the users IP Address).*
For getting the MAC Address of the same user. I tried the arp -a command, It gave the switch MAC-Address only. I cant able to get the Remote Clients/User MAC Address.
Linux Command : "arp -a" (gives me the MAC Address of the Switch).
How to the MAC Address of the Remote Clients Machines ?
Note : My Client Machines can run on any OS (Windows/Linux/Solaris).
MAC addresses doesn't get routed, so the IP address would have to be of a host on your network. You will have to ping the IP address first and then use arp -a; like
ping <Remote_IP_Address>
arp -a <Remote_IP_Address>
See this related posts here
is-there-a-way-to-find-the-mac-address-of-a-remote-machine-i-have-connected-to-w
how-to-find-the-mac-address-of-a-remote-computer
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 7 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I've succesfully run the command below to just add one computer on the network and have no problems connecting to it while the rest of my traffic goes unencrypted through my local connection.
sudo route add 000.000.123.123 gw 000.000.202.253 dev tun0
If I want to do something like the command below where I want to add everything under the domain 128.250.x.x to be routed to the gw. What is the command to do this? Do I need to change the netmask from 255.255.255.255 to something else?
sudo route add 000.000.*.* gw 000.000.202.253 dev tun0
You should be able to just write
sudo route add -net 128.250.0.0 netmask 255.255.0.0 gw 000.000.202.253 dev tun0