OSDev.org

The Place to Start for Operating System Developers
It is currently Sat Apr 27, 2024 3:35 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Testing network
PostPosted: Sat Feb 10, 2024 1:43 am 
Offline

Joined: Sun Apr 14, 2019 12:19 am
Posts: 8
Hello,

I'm trying to test how network work.

I use Debian 11 with QEMU. I see an interesting code here: https://github.com/pandax381/xv6-net
It's OK to compile and starting. But nothing work with TCP.

This is what I have on this computer:
Quote:
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:db:97:1c brd ff:ff:ff:ff:ff:ff
altname enp2s1
inet 192.168.1.128/24 brd 192.168.1.255 scope global dynamic noprefixroute ens33
valid_lft 42862sec preferred_lft 42862sec
inet6 2a01:e0a:2d8:6500:3669:a62a:dc50:cc03/64 scope global temporary dynamic
valid_lft 86147sec preferred_lft 85755sec
inet6 2a01:e0a:2d8:6500:20c:29ff:fedb:971c/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 86147sec preferred_lft 86147sec
inet6 fe80::20c:29ff:fedb:971c/64 scope link noprefixroute
valid_lft forever preferred_lft forever


I see on QEMU documentation that the default IP is 10.0.2.2 so I try this with XV6:

Quote:
ifconfig net1 10.0.2.2 netmask 255.255.255.0
ifconfig net1 up
tcpechoserver&


And on a another console this:
Quote:
echo "Hello TCP" > /dev/tcp/10.0.2.2/10007


Nothing append. I try another IP it's equal. Can you help me with this?
In another hand if you have a good tutorial/code that's work with Debian/QEMU?


Top
 Profile  
 
 Post subject: Re: Testing network
PostPosted: Tue Feb 27, 2024 9:05 am 
Offline

Joined: Sun Apr 14, 2019 12:19 am
Posts: 8
After multiple test found: this need a fresh Install to work. And it's fragile!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot], nullplan and 68 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group